diff options
author | Alexander Larsson <alla@lysator.liu.se> | 2001-08-27 01:05:07 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-08-27 01:05:07 +0000 |
commit | f9e666244fb25940b113cd35dbed18d0f75c4f44 (patch) | |
tree | a7647e917586f524dba60b1bed78054c1e21fef4 /gtk/gtkbutton.h | |
parent | 8d00215d9ed8a40f17fa6658bc30520b2fc8d03d (diff) | |
download | gtk+-f9e666244fb25940b113cd35dbed18d0f75c4f44.tar.gz |
Add properties for labels, mnemonics and stock items. Added C accessor
2001-08-26 Alexander Larsson <alla@lysator.liu.se>
* gtk/gtkbutton.[ch]:
Add properties for labels, mnemonics and stock items.
Added C accessor functions for the properties.
Removed deprecated button->child.
* gtk/gtkradiobutton.c:
* gtk/gtktogglebutton.c:
Update to use the functions in GtkButton.
* gtk/gtkcheckbutton.c:
Update to use the functions in GtkButton.
Changed size allocation of child. Now only gets as much
space as it requests.
* gtk/gtkclist.c:
Don't use GtkButton->child
* gtk/gtklabel.c:
Fixed typo in docs
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r-- | gtk/gtkbutton.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h index 1a5cbaf3d9..b27df541a8 100644 --- a/gtk/gtkbutton.h +++ b/gtk/gtkbutton.h @@ -52,15 +52,16 @@ struct _GtkButton { GtkBin bin; - GtkWidget *child /* deprecapted field, - * use GTK_BIN (button)->child instead - */; + gchar *label_text; guint activate_timeout; + guint constructed : 1; guint in_button : 1; guint button_down : 1; guint relief : 2; + guint use_underline : 1; + guint use_stock : 1; guint depressed : 1; }; @@ -90,8 +91,18 @@ void gtk_button_leave (GtkButton *button); void gtk_button_set_relief (GtkButton *button, GtkReliefStyle newstyle); GtkReliefStyle gtk_button_get_relief (GtkButton *button); -void _gtk_button_set_depressed (GtkButton *button, - gboolean depressed); + +void gtk_button_set_label (GtkButton *button, + const gchar *label); +G_CONST_RETURN gchar *gtk_button_get_label (GtkButton *button); +void gtk_button_set_use_underline (GtkButton *button, + gboolean value); +gboolean gtk_button_get_use_underline (GtkButton *button); +void gtk_button_set_use_stock (GtkButton *button, + gboolean value); +gboolean gtk_button_get_use_stock (GtkButton *button); +void _gtk_button_set_depressed (GtkButton *button, + gboolean depressed); #ifdef __cplusplus } |