diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c index 24598b370e..1e91cf1b08 100644 --- a/gtk/gtkcolorchooserwidget.c +++ b/gtk/gtkcolorchooserwidget.c @@ -61,6 +61,21 @@ * GtkColorChooserWidget has a single CSS node with name colorchooser. */ +typedef struct _GtkColorChooserWidgetPrivate GtkColorChooserWidgetPrivate; +typedef struct _GtkColorChooserWidgetClass GtkColorChooserWidgetClass; + +struct _GtkColorChooserWidget +{ + GtkBox parent_instance; + + GtkColorChooserWidgetPrivate *priv; +}; + +struct _GtkColorChooserWidgetClass +{ + GtkBoxClass parent_class; +}; + struct _GtkColorChooserWidgetPrivate { GtkWidget *palette; diff --git a/gtk/gtkcolorchooserwidget.h b/gtk/gtkcolorchooserwidget.h index 60f461681d..eac86a7585 100644 --- a/gtk/gtkcolorchooserwidget.h +++ b/gtk/gtkcolorchooserwidget.h @@ -28,43 +28,9 @@ G_BEGIN_DECLS #define GTK_TYPE_COLOR_CHOOSER_WIDGET (gtk_color_chooser_widget_get_type ()) #define GTK_COLOR_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidget)) -#define GTK_COLOR_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetClass)) #define GTK_IS_COLOR_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET)) -#define GTK_IS_COLOR_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_CHOOSER_WIDGET)) -#define GTK_COLOR_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetClass)) typedef struct _GtkColorChooserWidget GtkColorChooserWidget; -typedef struct _GtkColorChooserWidgetPrivate GtkColorChooserWidgetPrivate; -typedef struct _GtkColorChooserWidgetClass GtkColorChooserWidgetClass; - -struct _GtkColorChooserWidget -{ - GtkBox parent_instance; - - /*< private >*/ - GtkColorChooserWidgetPrivate *priv; -}; - -/** - * GtkColorChooserWidgetClass: - * @parent_class: The parent class. - */ -struct _GtkColorChooserWidgetClass -{ - GtkBoxClass parent_class; - - /*< private >*/ - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); - void (*_gtk_reserved5) (void); - void (*_gtk_reserved6) (void); - void (*_gtk_reserved7) (void); - void (*_gtk_reserved8) (void); -}; GDK_AVAILABLE_IN_ALL GType gtk_color_chooser_widget_get_type (void) G_GNUC_CONST;