Hello everybody,

I'm struggling with Gtk::FileSelection and how to use it properly.
Here is what I'd like to do:

FileSelection yields its result to a given block:
--- snip ---
  def initialize()
    super("Bla")
    ok_button.signal_connect("clicked") do
      yield(get_filename)
      destroy
    end
    ...
  end
--- snap ---

somewhere in the main programm:
  f = FileSelection.new {|result| set_filename(result)}
where set_filename does the bulk work (load/parse XML file, etc.)
which takes some time:
--- snip ---
  def set_filename(fnm)
    diag = MyDialog.new("Information", "Parsing XML file")
    diag.show
    ... do work
    diag.destroy
  end
--- snap ---

The problem is, that the FileSelection dialog only disappears when the
whole story is done, that is after loading/processing the input file.
As a consequence, a notification dialog, which should pop up during
loading in fact shows up last (too late).

I wonder if anybody understands what I'm trying to say and actually
has a way to solve this...

Thanks for your help/hints.

So long,
Arno Erpenbeck