[gtk+/refactor: 47/106] gtkfontbutton: unseal private pointer



commit 55163b1cc11613aa0799fb663ecb7ee2fa9ebfb0
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Jun 4 23:57:59 2010 +0200

    gtkfontbutton: unseal private pointer

 gtk/gtkfontbutton.c |    5 +++--
 gtk/gtkfontbutton.h |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 565654e..db794c1 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -44,7 +44,6 @@
 #include <string.h>
 #include <stdio.h>
 
-#define GTK_FONT_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonPrivate))
 
 struct _GtkFontButtonPrivate 
 {
@@ -253,7 +252,9 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
 static void
 gtk_font_button_init (GtkFontButton *font_button)
 {
-  font_button->priv = GTK_FONT_BUTTON_GET_PRIVATE (font_button);
+  font_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (font_button,
+                                                   GTK_TYPE_FONT_BUTTON,
+                                                   GtkFontButtonPrivate);
 
   /* Initialize fields */
   font_button->priv->fontname = g_strdup (_("Sans 12"));
diff --git a/gtk/gtkfontbutton.h b/gtk/gtkfontbutton.h
index 813e639..bc64767 100644
--- a/gtk/gtkfontbutton.h
+++ b/gtk/gtkfontbutton.h
@@ -54,7 +54,7 @@ struct _GtkFontButton {
   GtkButton button;
 
   /*< private >*/
-  GtkFontButtonPrivate *GSEAL (priv);
+  GtkFontButtonPrivate *priv;
 };
 
 struct _GtkFontButtonClass {



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