diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-26 16:23:17 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-26 16:23:17 -0400 |
commit | 6a5963a39513ed1b1b6facfe439a63718d11a5a9 (patch) | |
tree | 40d146accf33169426f2f300f64d69d21ad5868e | |
parent | 5ec165e088311491dc7251cc12ef0a03912346c1 (diff) | |
download | gtk+-6a5963a39513ed1b1b6facfe439a63718d11a5a9.tar.gz |
stack switcher: Make final
This should not be subclassed.
-rw-r--r-- | gtk/gtkstackswitcher.c | 12 | ||||
-rw-r--r-- | gtk/gtkstackswitcher.h | 19 |
2 files changed, 12 insertions, 19 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c index b2fa29307d..c7803de6dc 100644 --- a/gtk/gtkstackswitcher.c +++ b/gtk/gtkstackswitcher.c @@ -66,7 +66,19 @@ #define TIMEOUT_EXPAND 500 +typedef struct _GtkStackSwitcherClass GtkStackSwitcherClass; typedef struct _GtkStackSwitcherPrivate GtkStackSwitcherPrivate; + +struct _GtkStackSwitcher +{ + GtkBox widget; +}; + +struct _GtkStackSwitcherClass +{ + GtkBoxClass parent_class; +}; + struct _GtkStackSwitcherPrivate { GtkStack *stack; diff --git a/gtk/gtkstackswitcher.h b/gtk/gtkstackswitcher.h index d11ed46bb6..28922c3e35 100644 --- a/gtk/gtkstackswitcher.h +++ b/gtk/gtkstackswitcher.h @@ -31,29 +31,10 @@ G_BEGIN_DECLS #define GTK_TYPE_STACK_SWITCHER (gtk_stack_switcher_get_type ()) #define GTK_STACK_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STACK_SWITCHER, GtkStackSwitcher)) -#define GTK_STACK_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STACK_SWITCHER, GtkStackSwitcherClass)) #define GTK_IS_STACK_SWITCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STACK_SWITCHER)) -#define GTK_IS_STACK_SWITCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STACK_SWITCHER)) -#define GTK_STACK_SWITCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STACK_SWITCHER, GtkStackSwitcherClass)) typedef struct _GtkStackSwitcher GtkStackSwitcher; -typedef struct _GtkStackSwitcherClass GtkStackSwitcherClass; -struct _GtkStackSwitcher -{ - GtkBox widget; -}; - -struct _GtkStackSwitcherClass -{ - GtkBoxClass parent_class; - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); -}; GDK_AVAILABLE_IN_ALL GType gtk_stack_switcher_get_type (void) G_GNUC_CONST; |