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

Paulo Augusto PauloMorfeo at portugalmail.pt
Thu Feb 2 14:16:35 EST 2006


Qua, 2006-02-01 às 19:41 +0000, Paulo Augusto escreveu:
> Sáb, 2006-01-28 às 07:20 +0000, Paulo Augusto escreveu:
> > 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?
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 
> Solution:
> 2006-02-01, Mike Kestner wrote: 
> > > - Is there any way to get the correct variable level Gtk.Window for the
> > > Widget?
> > 
> > Widget.Toplevel
> 
> Widget.Toplevel returns a Gtk.Window!
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Actually, i was mistaken. Much work yesterday .. and today...
It does not returns a Gtk.Window . It returns the top most widget that
should be a Gtk.Window which is, therefore, castable to a Gtk.Window .

(Gtk.Window) Widget.Toplevel

And this mailing list looks somewhat dead!?


More information about the Gtk-sharp-list mailing list