[Gtk-sharp-list] Gdk.Window to Gtk.Window?

Paulo Augusto PauloMorfeo at portugalmail.pt
Sat Jan 28 02:20:20 EST 2006


I am trying to use a Dialog() but i am having problems because:
Dialog ... = new Dialog (... , Gtk.Window , ...)

The control that calls the constructor of Dialog can do something like:
RootWindow() or ParentWindow() or GdkWindow()
But all of them return me a Gdk.Window and the constructor of Dialog()
wants to receive a Gtk.Window, instead, and it won't «cast» from
Gdk.Window to Gtk.Window:
(Gtk.Window) this.RootWindow()

Can anyone help me out so i won't have to implement some ugly work
around?


More information about the Gtk-sharp-list mailing list