diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-01 19:15:23 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:45 +0200 |
commit | ee1d9df94c3574e6e393e12992308accbbc76d49 (patch) | |
tree | 52228fdcd1c6cdd2087c3add7e69873d74927345 | |
parent | c0b0b84c6e824398e23519a389e02d65494f6cfe (diff) | |
download | gtk+-ee1d9df94c3574e6e393e12992308accbbc76d49.tar.gz |
gtkcellrendererprogress: unseal private pointer
-rw-r--r-- | gtk/gtkcellrendererprogress.c | 12 | ||||
-rw-r--r-- | gtk/gtkcellrendererprogress.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c index 48f7bb09d8..f6f3a9937a 100644 --- a/gtk/gtkcellrendererprogress.c +++ b/gtk/gtkcellrendererprogress.c @@ -33,9 +33,6 @@ #include "gtkprivate.h" #include "gtkintl.h" -#define GTK_CELL_RENDERER_PROGRESS_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ - GTK_TYPE_CELL_RENDERER_PROGRESS, \ - GtkCellRendererProgressPrivate)) enum { @@ -231,7 +228,12 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass) static void gtk_cell_renderer_progress_init (GtkCellRendererProgress *cellprogress) { - GtkCellRendererProgressPrivate *priv = GTK_CELL_RENDERER_PROGRESS_GET_PRIVATE (cellprogress); + GtkCellRendererProgressPrivate *priv; + + cellprogress->priv = G_TYPE_INSTANCE_GET_PRIVATE (cellprogress, + GTK_TYPE_CELL_RENDERER_PROGRESS, + GtkCellRendererProgressPrivate); + priv = cellprogress->priv; priv->value = 0; priv->text = NULL; @@ -245,8 +247,6 @@ gtk_cell_renderer_progress_init (GtkCellRendererProgress *cellprogress) priv->text_yalign = 0.5; priv->orientation = GTK_PROGRESS_LEFT_TO_RIGHT; - - cellprogress->priv = priv; } diff --git a/gtk/gtkcellrendererprogress.h b/gtk/gtkcellrendererprogress.h index 1a1eec6421..eee156f218 100644 --- a/gtk/gtkcellrendererprogress.h +++ b/gtk/gtkcellrendererprogress.h @@ -52,7 +52,7 @@ struct _GtkCellRendererProgress GtkCellRenderer parent_instance; /*< private >*/ - GtkCellRendererProgressPrivate *GSEAL (priv); + GtkCellRendererProgressPrivate *priv; }; struct _GtkCellRendererProgressClass |