diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 6e12768c2f..d984a8661c 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -60,6 +60,19 @@ * GtkFontButton has a single CSS node with name fontbutton. */ +typedef struct _GtkFontButtonClass GtkFontButtonClass; + +struct _GtkFontButton +{ + GtkWidget parent_instance; +}; + +struct _GtkFontButtonClass +{ + GtkWidgetClass parent_class; + + void (* font_set) (GtkFontButton *gfp); +}; typedef struct { diff --git a/gtk/gtkfontbutton.h b/gtk/gtkfontbutton.h index a05653c030..659cd3288f 100644 --- a/gtk/gtkfontbutton.h +++ b/gtk/gtkfontbutton.h @@ -35,38 +35,11 @@ G_BEGIN_DECLS -/* GtkFontButton is a button widget that allow user to select a font. - */ - #define GTK_TYPE_FONT_BUTTON (gtk_font_button_get_type ()) #define GTK_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButton)) -#define GTK_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) #define GTK_IS_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_BUTTON)) -#define GTK_IS_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_BUTTON)) -#define GTK_FONT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) typedef struct _GtkFontButton GtkFontButton; -typedef struct _GtkFontButtonClass GtkFontButtonClass; - -struct _GtkFontButton -{ - GtkWidget parent_instance; -}; - -struct _GtkFontButtonClass -{ - GtkWidgetClass parent_class; - - /* font_set signal is emitted when font is chosen */ - void (* font_set) (GtkFontButton *gfp); - - /* 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_font_button_get_type (void) G_GNUC_CONST;