Widget/Object doubts for a newbie...



Hi,

I'm reading gtk+-doc and looking at any source code relative to gtk programs (I'm a newbie).
However I don't understand use of these functions:

g_object_add_weak_pointer (G_OBJECT (app->new_profile_dialog), (void**) &app->new_profile_dialog);
g_object_set_data (G_OBJECT (app->new_profile_dialog), "create_button", create_button);
g_object_unref (G_OBJECT (size_group));

Why using g_object_unref to place g_free?
What is usefulness of g_object_set_data and g_object_add_weak_pointer?

Thank you very much
Giulio
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Zuritel Rc auto. Assaggia il frutto del risparmio. Prezzo tagliato Più garanzie. Clicca qui per un preventivo gratuito.
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2814&d=31-10



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