Re: changing the label of a button
- From: Steve & Patti Getzinger <steveandpatti wubs org>
- To: gtk-app-devel-list gnome org
- Subject: Re: changing the label of a button
- Date: Sun, 18 Mar 2001 21:28:49 -0500
I believe it can also be accessed:
gtk_label_set_text (GTK_BIN (button_name)->child, "GTK+");
Could be wrong there just learning myself :)
Steve
Capitulino wrote:
On 18 Mar 2001, Matt Gerginski wrote:
does anyone know...Thanks.
If you used a "blank" button and put a label in it, thus:
button = gtk_button_new ();
label = gtk_label_new ("GTK");
gtk_container_add (GTK_CONTAINER (button), label);
you can modify the label, with this function:
gtk_label_set_text (GtkLabel *label,
char *str);
In our exemple:
gtk_label_set_text (GTK_LABEL (label),
"GTK+");
- Capitulino
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]