Re: Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?

2008-01-31 Thread Brian . Lu
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- >

Re: Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?

2008-01-15 Thread Brian . Lu
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

Re: Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?

2008-01-11 Thread Brian Lu
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. >

Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?

2008-01-10 Thread Brian Lu
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