[gtk+/refactor: 18/106] gtkcellrendererspinner: Remove GET_PRIV() macro
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 18/106] gtkcellrendererspinner: Remove GET_PRIV() macro
- Date: Tue, 13 Jul 2010 17:43:31 +0000 (UTC)
commit b71d539fd065ec851932f8ed9d92da9c2e58df14
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jun 1 19:34:11 2010 +0200
gtkcellrendererspinner: Remove GET_PRIV() macro
This macro shouldn't be used in any function, but ->priv pointer
instead.
gtk/gtkcellrendererspinner.c | 9 ++++-----
gtk/gtkcellrendererspinner.h | 2 ++
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c
index f4eec0d..67283ec 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 45bcfca..84a3077 100644
--- a/gtk/gtkcellrendererspinner.h
+++ b/gtk/gtkcellrendererspinner.h
@@ -45,6 +45,8 @@ typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate;
struct _GtkCellRendererSpinner
{
GtkCellRenderer parent;
+
+ /* <private> */
GtkCellRendererSpinnerPrivate *priv;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]