diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c index 1bacf77757..62a2563d00 100644 --- a/gtk/gtkcellrendererprogress.c +++ b/gtk/gtkcellrendererprogress.c @@ -58,6 +58,22 @@ enum PROP_INVERTED }; +typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; +typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate; + +struct _GtkCellRendererProgress +{ + GtkCellRenderer parent_instance; + + /*< private >*/ + GtkCellRendererProgressPrivate *priv; +}; + +struct _GtkCellRendererProgressClass +{ + GtkCellRendererClass parent_class; +}; + struct _GtkCellRendererProgressPrivate { gint value; diff --git a/gtk/gtkcellrendererprogress.h b/gtk/gtkcellrendererprogress.h index 287b6117eb..6bfbd4b172 100644 --- a/gtk/gtkcellrendererprogress.h +++ b/gtk/gtkcellrendererprogress.h @@ -36,33 +36,9 @@ G_BEGIN_DECLS #define GTK_TYPE_CELL_RENDERER_PROGRESS (gtk_cell_renderer_progress_get_type ()) #define GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress)) -#define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) #define GTK_IS_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS)) -#define GTK_IS_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS)) -#define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) typedef struct _GtkCellRendererProgress GtkCellRendererProgress; -typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; -typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate; - -struct _GtkCellRendererProgress -{ - GtkCellRenderer parent_instance; - - /*< private >*/ - GtkCellRendererProgressPrivate *priv; -}; - -struct _GtkCellRendererProgressClass -{ - GtkCellRendererClass 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_cell_renderer_progress_get_type (void) G_GNUC_CONST;