glade & _ref()



hello,

Why glade (v0.6.4, makes code for gtk+v1.2) produce this code:

  label7 = gtk_label_new (_("Plugin"));
  gtk_widget_ref (label7);
  gtk_object_set_data_full (GTK_OBJECT (wndMain), "label7", label7,
                            (GtkDestroyNotify) gtk_widget_unref);

instead of this:

  label7 = gtk_label_new (_("Plugin"));
  gtk_object_set_data (GTK_OBJECT (wndMain), "label7", label7);

? It doesn't make sense for me.

bajcik
-- 
Krzysztof Garus <kgarus bigfoot com>               Linux User 171721
http://www.bigfoot.com/~kgarus



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