Re: gchar * properties
- From: Maciej Piechotka <uzytkownik2 gmail com>
- To: gtk-list gnome org
- Subject: Re: gchar * properties
- Date: Thu, 16 Oct 2008 10:06:45 +0200
Pablo Yanez Trujillo <yanezp informatik uni-freiburg de> 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/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]