the GtkStyle object, you could try
using gtk_rc_get_style_by_paths for example?
Cheers,
-Markku-
On Fri, 2008-01-11 at 16:53 +0800, Brian Lu wrote:
Thanks a lot for your explanation. But look at following snippet from
firefox latest code base:
void InitWidget() {
mWidget
). 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-
On Fri, 2008-01-11 at 16:53 +0800, Brian Lu wrote:
Thanks a lot for your
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.
Cheers,
-Markku-
On Wed, 2008-01-09 at 17:39 +0800, Brian Lu wrote:
Hi
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