diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-26 15:34:31 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-26 15:34:31 -0400 |
commit | fb334b1b15b3ec67fc5da33f164aa8f91add177e (patch) | |
tree | 1072b9bfc87a83a97415a6c4e46aff9487fef602 /gtk/gtkswitch.h | |
parent | 96eefd49fa7ec1ed57ee987ac702bd4130420678 (diff) | |
download | gtk+-fb334b1b15b3ec67fc5da33f164aa8f91add177e.tar.gz |
switch: Make final
This should not be subclassed.
Diffstat (limited to 'gtk/gtkswitch.h')
-rw-r--r-- | gtk/gtkswitch.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/gtk/gtkswitch.h b/gtk/gtkswitch.h index f5253645bb..5412346e86 100644 --- a/gtk/gtkswitch.h +++ b/gtk/gtkswitch.h @@ -37,48 +37,9 @@ G_BEGIN_DECLS #define GTK_TYPE_SWITCH (gtk_switch_get_type ()) #define GTK_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SWITCH, GtkSwitch)) #define GTK_IS_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SWITCH)) -#define GTK_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SWITCH, GtkSwitchClass)) -#define GTK_IS_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SWITCH)) -#define GTK_SWITCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SWITCH, GtkSwitchClass)) typedef struct _GtkSwitch GtkSwitch; -typedef struct _GtkSwitchClass GtkSwitchClass; -/** - * GtkSwitch: - * - * The #GtkSwitch-struct contains private - * data and it should only be accessed using the provided API. - */ -struct _GtkSwitch -{ - /*< private >*/ - GtkWidget parent_instance; -}; - -/** - * GtkSwitchClass: - * @parent_class: The parent class. - * @activate: An action signal and emitting it causes the switch to animate. - * @state_set: Class handler for the ::state-set signal. - */ -struct _GtkSwitchClass -{ - GtkWidgetClass parent_class; - - /*< public >*/ - - void (* activate) (GtkSwitch *sw); - - gboolean (* state_set) (GtkSwitch *sw, gboolean state); - /*< private >*/ - - 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); -}; GDK_AVAILABLE_IN_ALL GType gtk_switch_get_type (void) G_GNUC_CONST; |