forked from AuroraMiddleware/gtk
gtkcellrendererspinner: Remove GET_PRIV() macro
This macro shouldn't be used in any function, but ->priv pointer instead.
This commit is contained in:
parent
c2b079ca05
commit
b71d539fd0
@ -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;
|
||||
|
@ -45,6 +45,8 @@ typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate;
|
||||
struct _GtkCellRendererSpinner
|
||||
{
|
||||
GtkCellRenderer parent;
|
||||
|
||||
/* <private> */
|
||||
GtkCellRendererSpinnerPrivate *priv;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user