[Glade-users] How can I access a button's label to change the text?



Friedrich Steven E CONT CNIN wrote:

I'm really struggling to learn GTK and GNOME...

How can I access a button's label to change the text?

If the label is the only widget in the button you can use

 GTK_BIN (button)->child

(GtkButton is a subclass of GtkBin, which is a container with one child,
which it stores in the child field of its struct.)

Damon





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