On Fri, Aug 22, 2008 at 9:30 AM, Andoni Morales Alastruey
<[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm facing the following problem:
> I have a class TestDialog wich extends Gtk.Dialog. This class contains
> another class ReusableWidget wich extends Gtk:bin. The TestBin a button
> that shows a FileChooserDialog:
> FileChooserDialog fChooser = new FileChooserDialog ( "", null,
> FileChooserAction.Open ,"gtk-cancel", ResponseType.Cancel,
> "gtk-open",ResponseType.Accept);
>
> As this is called from the Gtk:bin I cannot set the the parent window
> doing:
> FileChooserDialog fChooser = new FileChooserDialog ( "", this,...

Use ((Window) this.Toplevel) as the parent.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to