Re: all about gobject references


> but still after reading thoroughly  i am unable to figure out why the
> ref_count would be "4" for gtk_window_new() call ?

After gtk_window_new call, refcount is 1. Additional references are
added by callback mechanism. (Try adding print statement right after
the creation and you'll see.)


Tadej Borovšak
tadeboro gmail com
tadej borovsak gmail com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]