On Fri, Aug 22, 2008 at 03:30:39PM +0200, Andoni Morales Alastruey wrote:
> Hi!
> 
> 
> As this is called from the Gtk:bin I cannot set the the parent window
> doing:
> FileChooserDialog fChooser = new FileChooserDialog ( "", this,...

You can do something like:

FileChooserDialog fChooser = new FileChooserDialog ("", base.TopLevel as
Gtk.Window,...

See:

http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-get-toplevel


Alternately, you could use Gtk.Widget.GetAncestor (Gtk.Window.GType) to
get the widget's parent Gtk.Window.

-pete

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to