Pablo Yanez Trujillo <[EMAIL PROTECTED]> writes: > Hi > > Widgets have some properties of type gchar*. For example GtkLabel has the > "label" property. What happens when I use > g_object_set(lable_widget, "label", some_gchar_ptr, NULL);? Does the class > just assign 'some_gchar_ptr' to the 'label' > member or does it allocate memory and copy the content pointed to by > 'some_gchar_ptr'? >
It do not copy, as it calls g_value_get_string not g_value_dup_string - look into the source. Regards -- I've probably left my head... somewhere. Please wait untill I find it. Homepage (pl_PL): http://uzytkownik.jogger.pl/ (GNU/)Linux User: #425935 (see http://counter.li.org/) _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
