Re: [gtk-list] Re: How to change a label in a GtkTree?



On Fri, 09 Jul 1999, Quentin Delamarre wrote:

> the following expression:
>  ((GtkLabel *)  ((GtkBin *) My_tree_item)->child)->label

> P.S. Is there a simpler way to access this label?

There's not a better way to access the label, but you should use:

gtk_label_set_text( GTK_LABEL( GTK_BIN( my_tree_item )->child ) ), new_text );

rather than directly accessing the character value.

m.

-- 
"How wonderful! How mysterious                                   Programmer
 I carry wood! I draw water!"                   Loki Entertainment Software
 - Anonymous Tao poet



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