gtkcellrendererprogress: unseal private pointer

This commit is contained in:
Javier Jardón 2010-06-01 19:15:23 +02:00
parent c0b0b84c6e
commit ee1d9df94c
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -52,7 +52,7 @@ struct _GtkCellRendererProgress
GtkCellRenderer parent_instance;
/*< private >*/
GtkCellRendererProgressPrivate *GSEAL (priv);
GtkCellRendererProgressPrivate *priv;
};
struct _GtkCellRendererProgressClass