diff options
-rw-r--r-- | gtk/gtklevelbar.c | 12 | ||||
-rw-r--r-- | gtk/gtklevelbar.h | 19 |
2 files changed, 12 insertions, 19 deletions
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c index 02794d8a93..401ae32da7 100644 --- a/gtk/gtklevelbar.c +++ b/gtk/gtklevelbar.c @@ -164,6 +164,18 @@ typedef struct { gdouble value; } GtkLevelBarOffset; +struct _GtkLevelBar { + GtkWidget parent_instance; +}; + +typedef struct _GtkLevelBarClass GtkLevelBarClass; +struct _GtkLevelBarClass { + GtkWidgetClass parent_class; + + void (* offset_changed) (GtkLevelBar *self, + const gchar *name); +}; + typedef struct _GtkLevelBarPrivate GtkLevelBarPrivate; struct _GtkLevelBarPrivate { GtkOrientation orientation; diff --git a/gtk/gtklevelbar.h b/gtk/gtklevelbar.h index 67c274f851..55defd25b1 100644 --- a/gtk/gtklevelbar.h +++ b/gtk/gtklevelbar.h @@ -31,10 +31,7 @@ G_BEGIN_DECLS #define GTK_TYPE_LEVEL_BAR (gtk_level_bar_get_type ()) #define GTK_LEVEL_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LEVEL_BAR, GtkLevelBar)) -#define GTK_LEVEL_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LEVEL_BAR, GtkLevelBarClass)) #define GTK_IS_LEVEL_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LEVEL_BAR)) -#define GTK_IS_LEVEL_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LEVEL_BAR)) -#define GTK_LEVEL_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LEVEL_BAR, GtkLevelBarClass)) /** * GTK_LEVEL_BAR_OFFSET_LOW: @@ -57,24 +54,8 @@ G_BEGIN_DECLS */ #define GTK_LEVEL_BAR_OFFSET_FULL "full" -typedef struct _GtkLevelBarClass GtkLevelBarClass; typedef struct _GtkLevelBar GtkLevelBar; -struct _GtkLevelBar { - /*< private >*/ - GtkWidget parent_instance; -}; - -struct _GtkLevelBarClass { - /*< private >*/ - GtkWidgetClass parent_class; - - void (* offset_changed) (GtkLevelBar *self, - const gchar *name); - - /* padding for future class expansion */ - gpointer padding[16]; -}; GDK_AVAILABLE_IN_ALL GType gtk_level_bar_get_type (void) G_GNUC_CONST; |