Forget it, looks like the top level window is destroyed by the
finalizer.

El dv 25 de 08 del 2006 a les 03:04 +0200, en/na Lluis Sanchez va
escriure:
> Run the following program:
> 
> public static void Main(string[] args)
> {
>       Gtk.Application.Init();
>       Console.WriteLine (Gtk.Window.ListToplevels ().Length);
>       
>       Gtk.ComboBox combo = new Gtk.ComboBox ();
>       Console.WriteLine (Gtk.Window.ListToplevels ().Length);
>       
>       combo.Destroy ();
>       Console.WriteLine (Gtk.Window.ListToplevels ().Length);
> }
> 
> It prints:
> 0
> 1
> 1
> 
> The new top level window is the menu used by the combo to show the
> options, but that window is not destroyed when destroying the combo. Is
> this a known issue or I'm missing something?
> 
> Lluis.
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to