Re: g_object_get not get the string property?



El mié, 16-10-2002 a las 15:02, German Poo Caaman~o escribió:
> El mié, 16-10-2002 a las 05:53, hoyt escribió:
> > [...]
> > 	GtkWidget *window;
> > 	GtkWidget *entry;
> > 	gchar value[1024];
> > [...]
> > 	g_object_get(G_OBJECT(window),"title",value,NULL);

I forgot:
        gchar *tmp;
        ...
        tmp = g_strdup (g_locale_to_utf8("hello world", -1, 
                NULL, NULL, NULL));
        g_object_set (G_OBJECT(window), "title", tmp, NULL);
        g_free (tmp);

> 
> Try:
> 	gchar *value;
> 	[...]
> 	g_object_get(G_OBJECT(window), "title", &value, NULL);

-- 
German Poo Caaman~o
mailto:gpoo ubiobio cl
http://www.ubiobio.cl/~gpoo/chilelindo.html
"Hay 10 tipos de personas: las que entienden binario y las que no."




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