[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    [gtk-list] Re: How to change a label in a GtkTree?
From:       Michael Vance <briareos () lokigames ! com>
Date:       1999-07-09 15:43:03
[Download RAW message or body]

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

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic