[gtk+/refactor: 26/106] gtkcolorbutton: unseal private pointer



commit ad45f1ce9de39e169b2a9b5240396b5c1fb210df
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jun 2 02:39:58 2010 +0200

    gtkcolorbutton: unseal private pointer

 gtk/gtkcolorbutton.c |    5 +++--
 gtk/gtkcolorbutton.h |    3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 878d127..0f4e951 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -50,7 +50,6 @@
 #define CHECK_DARK  21845  /* 65535 / 3     */
 #define CHECK_LIGHT 43690 
 
-#define GTK_COLOR_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButtonPrivate))
 
 struct _GtkColorButtonPrivate 
 {
@@ -528,7 +527,9 @@ gtk_color_button_init (GtkColorButton *color_button)
   PangoRectangle rect;
 
   /* Create the widgets */
-  color_button->priv = GTK_COLOR_BUTTON_GET_PRIVATE (color_button);
+  color_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (color_button,
+                                                    GTK_TYPE_COLOR_BUTTON,
+                                                    GtkColorButtonPrivate);
 
   gtk_widget_push_composite_child ();
 
diff --git a/gtk/gtkcolorbutton.h b/gtk/gtkcolorbutton.h
index 257eb28..508db11 100644
--- a/gtk/gtkcolorbutton.h
+++ b/gtk/gtkcolorbutton.h
@@ -63,8 +63,7 @@ struct _GtkColorButton {
   GtkButton button;
 
   /*< private >*/
-
-  GtkColorButtonPrivate *GSEAL (priv);
+  GtkColorButtonPrivate *priv;
 };
 
 struct _GtkColorButtonClass {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]