ect_unref
> is a bug (as you noticed). The way to ask GTK to release the last
> reference is to call gtk_widget_destroy.
>
> If you are just interested about the GtkStyle object, you could try
> using gtk_rc_get_style_by_paths for example?
>
> Cheers,
>
> -Markku-
>
by gtk). Trying to remove it by g_object_unref
> is a bug (as you noticed). The way to ask GTK to release the last
> reference is to call gtk_widget_destroy.
>
> If you are just interested about the GtkStyle object, you could try
> using gtk_rc_get_style_by_paths for example?
&g
fectively gets destroyed. In case of toplevels some global window list
> is holding the reference.
>
> Calling gtk_widget_destroy without taking ownership a a widget is
> usually a bug that causes a memory leak, but this is not the case here,
> since we are talking about a toplevel.
>
Hi, experts,
I found following codes will crash in gnome 2.21 environment:
...
GtkWidget *foo = gtk_invisible_new();
gtk_widget_unref(foo);
...
But it works well if gtk_widget_unref() is replaced with
gtk_widget_destroy().
Does that mean that we can't use gtk_widget_unref() on such obj