gtkcellrendererspinner: Remove GET_PRIV() macro

This macro shouldn't be used in any function, but ->priv pointer
instead.
This commit is contained in:
Javier Jardón 2010-06-01 19:34:11 +02:00
parent c2b079ca05
commit b71d539fd0
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -45,6 +45,8 @@ typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate;
struct _GtkCellRendererSpinner
{
GtkCellRenderer parent;
/* <private> */
GtkCellRendererSpinnerPrivate *priv;
};