Widget referncing



Hi!

I found, that Glade generate those code for each widget:
gtk_widget_ref (hbox1);
g_object_set_data_full (G_OBJECT (ProjectOptionsDialog), "hbox1", hbox1,
                       (GDestroyNotify) gtk_widget_unref);

Why it is needed?
If I remove this code is widget hbox1 destroyed with parent window?

Alexander Chemeris




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