[gtk+/refactor: 56/106] GtkIconTheme: unseal private pointer



commit f66ebd8e59ad4c2006b003e1d3e1c256deee7f1e
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Jun 22 16:42:00 2010 +0200

    GtkIconTheme: unseal private pointer

 gtk/gtkicontheme.c |    7 ++++---
 gtk/gtkicontheme.h |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 63dcee7..fae73d7 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -557,9 +557,10 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme)
   GtkIconThemePrivate *priv;
   const gchar * const *xdg_data_dirs;
   int i, j;
-  
-  priv = g_type_instance_get_private ((GTypeInstance *)icon_theme,
-				      GTK_TYPE_ICON_THEME);
+
+  priv = G_TYPE_INSTANCE_GET_PRIVATE (icon_theme,
+                                      GTK_TYPE_ICON_THEME,
+                                      GtkIconThemePrivate);
   icon_theme->priv = priv;
 
   priv->custom_theme = FALSE;
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h
index 441a72a..6cdd3ca 100644
--- a/gtk/gtkicontheme.h
+++ b/gtk/gtkicontheme.h
@@ -49,7 +49,7 @@ struct _GtkIconTheme
   /*< private >*/
   GObject parent_instance;
 
-  GtkIconThemePrivate *GSEAL (priv);
+  GtkIconThemePrivate *priv;
 };
 
 struct _GtkIconThemeClass



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