[gtk] cell renderer spinner: Make final



commit 0a41fc545248c9ac997743e771334ff2697a59ff
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 26 20:30:04 2019 -0400

    cell renderer spinner: Make final

 gtk/gtkcellrendererspinner.c | 22 ++++++++++++++++++++++
 gtk/gtkcellrendererspinner.h | 24 ------------------------
 2 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c
index e68ec047bd..6daf00c592 100644
--- a/gtk/gtkcellrendererspinner.c
+++ b/gtk/gtkcellrendererspinner.c
@@ -64,6 +64,28 @@ enum {
   PROP_SIZE
 };
 
+typedef struct _GtkCellRendererSpinnerClass   GtkCellRendererSpinnerClass;
+typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate;
+
+struct _GtkCellRendererSpinner
+{
+  GtkCellRenderer                parent;
+
+  /*< private >*/
+  GtkCellRendererSpinnerPrivate *priv;
+};
+
+struct _GtkCellRendererSpinnerClass
+{
+  GtkCellRendererClass parent_class;
+
+  /* Padding for future expansion */
+  void (*_gtk_reserved1) (void);
+  void (*_gtk_reserved2) (void);
+  void (*_gtk_reserved3) (void);
+  void (*_gtk_reserved4) (void);
+};
+
 struct _GtkCellRendererSpinnerPrivate
 {
   gboolean active;
diff --git a/gtk/gtkcellrendererspinner.h b/gtk/gtkcellrendererspinner.h
index 927da2d784..d5361381b0 100644
--- a/gtk/gtkcellrendererspinner.h
+++ b/gtk/gtkcellrendererspinner.h
@@ -31,33 +31,9 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_CELL_RENDERER_SPINNER            (gtk_cell_renderer_spinner_get_type ())
 #define GTK_CELL_RENDERER_SPINNER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinner))
-#define GTK_CELL_RENDERER_SPINNER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), 
GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinnerClass))
 #define GTK_IS_CELL_RENDERER_SPINNER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GTK_TYPE_CELL_RENDERER_SPINNER))
-#define GTK_IS_CELL_RENDERER_SPINNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GTK_TYPE_CELL_RENDERER_SPINNER))
-#define GTK_CELL_RENDERER_SPINNER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinnerClass))
 
 typedef struct _GtkCellRendererSpinner        GtkCellRendererSpinner;
-typedef struct _GtkCellRendererSpinnerClass   GtkCellRendererSpinnerClass;
-typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate;
-
-struct _GtkCellRendererSpinner
-{
-  GtkCellRenderer                parent;
-
-  /*< private >*/
-  GtkCellRendererSpinnerPrivate *priv;
-};
-
-struct _GtkCellRendererSpinnerClass
-{
-  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_spinner_get_type (void) G_GNUC_CONST;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]