On Mon, 2001-08-20 at 17:25, Chicken Head wrote:
with the gtk_button_new_with_label is it possible to access the GtkLabel created in the button? if so, then how.
You can get it as the buttons child. A button is also a bin, which contains a child field. So you get the child as GTK_BIN (button)->child If you are sure that the child is a label (which it will be if you create it with _new_with_label ofcourse), you can cast it further. I've attached a small example. /mailund -- I didn't claw my way to the top of the food chain to eat vegetables!
Attachment:
main.c
Description: Text Data