Re: [gtk-list] what does gtk_label_get return? char**?




IIRC it returns a gchar * (well, it returns nothing but it writes to a
gchar * variable, somewhat weirdly).

gchar * text;
gtk_label_get(label, &text); /*arg is address of the gchar * to write to*/
g_print("Text: %s\n", text);

It should probably be obvious from the source, have a look at it.

Havoc Pennington ==== http://pobox.com/~hp




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