diff options
-rw-r--r-- | gtk/gtkcellrendererspinner.c | 9 | ||||
-rw-r--r-- | gtk/gtkcellrendererspinner.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c index f4eec0d435..67283ecbcd 100644 --- a/gtk/gtkcellrendererspinner.c +++ b/gtk/gtkcellrendererspinner.c @@ -69,10 +69,6 @@ struct _GtkCellRendererSpinnerPrivate gint size; }; -#define GTK_CELL_RENDERER_SPINNER_GET_PRIVATE(object) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ - GTK_TYPE_CELL_RENDERER_SPINNER, \ - GtkCellRendererSpinnerPrivate)) static void gtk_cell_renderer_spinner_get_property (GObject *object, guint param_id, @@ -166,7 +162,10 @@ gtk_cell_renderer_spinner_class_init (GtkCellRendererSpinnerClass *klass) static void gtk_cell_renderer_spinner_init (GtkCellRendererSpinner *cell) { - cell->priv = GTK_CELL_RENDERER_SPINNER_GET_PRIVATE (cell); + cell->priv = G_TYPE_INSTANCE_GET_PRIVATE (cell, + GTK_TYPE_CELL_RENDERER_SPINNER, + GtkCellRendererSpinnerPrivate); + cell->priv->pulse = 0; cell->priv->old_icon_size = GTK_ICON_SIZE_INVALID; cell->priv->icon_size = GTK_ICON_SIZE_MENU; diff --git a/gtk/gtkcellrendererspinner.h b/gtk/gtkcellrendererspinner.h index 45bcfcab6d..84a3077ea4 100644 --- a/gtk/gtkcellrendererspinner.h +++ b/gtk/gtkcellrendererspinner.h @@ -45,6 +45,8 @@ typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate; struct _GtkCellRendererSpinner { GtkCellRenderer parent; + + /* <private> */ GtkCellRendererSpinnerPrivate *priv; }; |