[gtk+/refactor: 16/106] gtkcellrendererprogress: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 16/106] gtkcellrendererprogress: unseal private pointer
- Date: Tue, 13 Jul 2010 17:31:21 +0000 (UTC)
commit 7350bb3d560cf72c451fcb2ea074272ddff4a4fe
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jun 1 19:15:23 2010 +0200
gtkcellrendererprogress: unseal private pointer
gtk/gtkcellrendererprogress.c | 12 ++++++------
gtk/gtkcellrendererprogress.h | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c
index 48f7bb0..f6f3a99 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 1a1eec6..eee156f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]