summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-03-29 13:40:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-04-06 01:52:47 -0400
commit7b11f761b310a0ea29ac8d28d7236c5101468ee6 (patch)
tree22e7832959d88a475d77af0be0f061e59f58cff6 /gtk/gtkswitch.h
parent4ebd2d3f7e3967be7963f9daf67921ecf07b40d0 (diff)
downloadgtk+-7b11f761b310a0ea29ac8d28d7236c5101468ee6.tar.gz
switch: Add a delayed state capability
This commit makes it possible for GtkSwitch to indicate when the underlying state changes with a delay, causing the switch to temporarily go 'out of sync' with the underlying change. https://bugzilla.gnome.org/show_bug.cgi?id=725648
Diffstat (limited to 'gtk/gtkswitch.h')
-rw-r--r--gtk/gtkswitch.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkswitch.h b/gtk/gtkswitch.h
index 70cfd970bd..0e561f8ba6 100644
--- a/gtk/gtkswitch.h
+++ b/gtk/gtkswitch.h
@@ -72,6 +72,7 @@ struct _GtkSwitchClass
void (* activate) (GtkSwitch *sw);
+ gboolean (* state_set) (GtkSwitch *sw, gboolean state);
/*< private >*/
void (* _switch_padding_1) (void);
@@ -79,7 +80,6 @@ struct _GtkSwitchClass
void (* _switch_padding_3) (void);
void (* _switch_padding_4) (void);
void (* _switch_padding_5) (void);
- void (* _switch_padding_6) (void);
};
GDK_AVAILABLE_IN_ALL
@@ -94,6 +94,12 @@ void gtk_switch_set_active (GtkSwitch *sw,
GDK_AVAILABLE_IN_ALL
gboolean gtk_switch_get_active (GtkSwitch *sw);
+GDK_AVAILABLE_IN_3_14
+void gtk_switch_set_state (GtkSwitch *sw,
+ gboolean state);
+GDK_AVAILABLE_IN_3_14
+gboolean gtk_switch_get_state (GtkSwitch *sw);
+
G_END_DECLS
#endif /* __GTK_SWITCH_H__ */