Hi. > 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 areadded by callback mechanism. (Try adding print statement right afterthe creation and you'll see.) Tadej -- Tadej Borovšaktadeboro.blogspot.comtadeboro@xxxxxxxxxxxxxxxxxxxxxxx@gmail.com_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list