summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.h
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-04-02 21:50:45 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-04-02 21:50:45 +0000
commitb5d8a668bdaccddeb846a6470bd315aef9557106 (patch)
tree4ed4d64b256aaa5db57aae48ea6a980567f60c8f /gtk/gtkbutton.h
parent8653097b33411ac8b417c58aa4d581b1b2fed959 (diff)
downloadgtk+-b5d8a668bdaccddeb846a6470bd315aef9557106.tar.gz
add property focus_on_click
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkbutton.[ch] (gtk_button_class_init): add property focus_on_click * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard navigation not wrap around.
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r--gtk/gtkbutton.h49
1 files changed, 27 insertions, 22 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index f3500c3f2a..9810edcf1a 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -66,6 +66,7 @@ struct _GtkButton
guint use_stock : 1;
guint depressed : 1;
guint depress_on_activate : 1;
+ guint focus_on_click : 1;
};
struct _GtkButtonClass
@@ -97,28 +98,32 @@ void gtk_button_released (GtkButton *button);
void gtk_button_clicked (GtkButton *button);
void gtk_button_enter (GtkButton *button);
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_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 use_underline);
-gboolean gtk_button_get_use_underline (GtkButton *button);
-void gtk_button_set_use_stock (GtkButton *button,
- gboolean use_stock);
-gboolean gtk_button_get_use_stock (GtkButton *button);
-
-void _gtk_button_set_depressed (GtkButton *button,
- gboolean depressed);
-void _gtk_button_paint (GtkButton *button,
- GdkRectangle *area,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- const gchar *main_detail,
- const gchar *default_detail);
+
+void gtk_button_set_relief (GtkButton *button,
+ GtkReliefStyle newstyle);
+GtkReliefStyle gtk_button_get_relief (GtkButton *button);
+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 use_underline);
+gboolean gtk_button_get_use_underline (GtkButton *button);
+void gtk_button_set_use_stock (GtkButton *button,
+ gboolean use_stock);
+gboolean gtk_button_get_use_stock (GtkButton *button);
+void gtk_button_set_focus_on_click (GtkButton *button,
+ gboolean focus_on_click);
+gboolean gtk_button_get_focus_on_click (GtkButton *button);
+
+
+void _gtk_button_set_depressed (GtkButton *button,
+ gboolean depressed);
+void _gtk_button_paint (GtkButton *button,
+ GdkRectangle *area,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ const gchar *main_detail,
+ const gchar *default_detail);
#ifdef __cplusplus
}