summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-02-25 15:47:03 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-02-25 15:47:03 -0500
commit46cc85fd7e0ff20c83254713f1092e7207c788f8 (patch)
treeac8adc8844a6dd4df6672baf21729272db680b0a /gtk/gtkswitch.h
parent6b91392afd2bf014cbd959a39640b9f56bd022c9 (diff)
downloadgtk+-46cc85fd7e0ff20c83254713f1092e7207c788f8.tar.gz
GtkSwitch: use regular activation
GtkSwitch was listening for Space/Enter keyreleases itself, instead of providing an 'activate' action signal, like e.g GtkButton. As a side-effect, this fixes https://bugzilla.gnome.org/show_bug.cgi?id=643321
Diffstat (limited to 'gtk/gtkswitch.h')
-rw-r--r--gtk/gtkswitch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkswitch.h b/gtk/gtkswitch.h
index 3706f618b5..492f9c39cb 100644
--- a/gtk/gtkswitch.h
+++ b/gtk/gtkswitch.h
@@ -72,13 +72,14 @@ struct _GtkSwitchClass
/*< private >*/
GtkWidgetClass parent_class;
+ void (* activate) (GtkSwitch *sw);
+
void (* _switch_padding_1) (void);
void (* _switch_padding_2) (void);
void (* _switch_padding_3) (void);
void (* _switch_padding_4) (void);
void (* _switch_padding_5) (void);
void (* _switch_padding_6) (void);
- void (* _switch_padding_7) (void);
};
GType gtk_switch_get_type (void) G_GNUC_CONST;