summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-06-22 16:42:00 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:48 +0200
commitf66ebd8e59ad4c2006b003e1d3e1c256deee7f1e (patch)
treec3b54bb09e51c8419c41d67f9d2e67ac3f4c3695 /gtk/gtkicontheme.c
parente1d182ce5ca28b6df720ae8d3eb50a532e1766f8 (diff)
downloadgtk+-f66ebd8e59ad4c2006b003e1d3e1c256deee7f1e.tar.gz
GtkIconTheme: unseal private pointer
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 63dcee7843..fae73d7fa9 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;