Label on a button
- From: Harring Figueiredo <harringf yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Label on a button
- Date: Thu, 25 Jul 2002 11:11:50 -0700 (PDT)
Folks,
I have a toolbar toogle button, and would like to set the text based on its
state.
I poked unto the code gtkbutton.c and there is a commnent saying that we now
use have to use:
GTK_BIN(button)->child.
I am using the aboce code and casting back to a GTK_LABEL.
When trying to set the text label (gtk_label_set_text) I get a assertion
saying the it is not a label.
The button does have a Icon (pixmap) and a label. ( I am using glade to build
it). I printed the GtkType, but I found no way to get what type of widget I get
when calling GTK_BIN(b)->child.
Any ideas?
I am using GTK+1.2
Thanks in advance.
Harring
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]