diff options
author | Tor Lillqvist <tml@iki.fi> | 2004-12-30 00:37:12 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2004-12-30 00:37:12 +0000 |
commit | 5e86a6c9cdd2055df350ea3cdaf2c4e59ff77878 (patch) | |
tree | 698bd51f656a574f0568462bbfb9067cdcf3b87e /gtk | |
parent | e7662669c13359f247342f8dbd35f048703b9d63 (diff) | |
download | gdk-pixbuf-5e86a6c9cdd2055df350ea3cdaf2c4e59ff77878.tar.gz |
Use /usr/share/pixmaps only on Unix.
2004-12-30 Tor Lillqvist <tml@iki.fi>
* gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
only on Unix.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkicontheme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 09336f667..86704f45d 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -567,7 +567,10 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme) xdg_data_dirs = g_get_system_data_dirs (); for (i = 0; xdg_data_dirs[i]; i++) ; - priv->search_path_len = i + 3; + priv->search_path_len = i + 2; +#ifdef G_OS_UNIX + priv->search_path_len++; +#endif priv->search_path = g_new (char *, priv->search_path_len); @@ -578,7 +581,9 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme) for (j = 0; xdg_data_dirs[j]; j++) priv->search_path[i++] = g_build_filename (xdg_data_dirs[j], "icons", NULL); +#ifdef G_OS_UNIX priv->search_path[i++] = g_strdup ("/usr/share/pixmaps"); +#endif priv->themes_valid = FALSE; priv->themes = NULL; |