Prevent cursor themes from being recognized as icon themes.
2007-07-28 Denis Washington <denisw@svn.gnome.org> * gnome-theme-info.c: (read_icon_theme): Prevent cursor themes from being recognized as icon themes. svn path=/trunk/; revision=7913
This commit is contained in:
parent
0660969a64
commit
b608a53acb
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-28 Denis Washington <denisw@svn.gnome.org>
|
||||
|
||||
* gnome-theme-info.c: (read_icon_theme):
|
||||
Prevent cursor themes from being recognized as icon themes.
|
||||
|
||||
2007-07-28 Thomas Wood <thos@gnome.org>
|
||||
|
||||
* gnome-theme-info.h: Add missing include
|
||||
|
|
|
@ -343,6 +343,7 @@ read_icon_theme (GnomeVFSURI *icon_theme_uri)
|
|||
GnomeDesktopItem *icon_theme_ditem;
|
||||
gchar *icon_theme_file;
|
||||
const gchar *name;
|
||||
const gchar *directories;
|
||||
const gchar *hidden_theme_icon;
|
||||
|
||||
icon_theme_file = gnome_vfs_uri_to_string (icon_theme_uri, GNOME_VFS_URI_HIDE_NONE);
|
||||
|
@ -361,6 +362,15 @@ read_icon_theme (GnomeVFSURI *icon_theme_uri)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* If index.theme has no Directories entry, it is only a cursor theme */
|
||||
directories = gnome_desktop_item_get_string (icon_theme_ditem, "Icon Theme/Directories");
|
||||
if (directories == NULL)
|
||||
{
|
||||
gnome_desktop_item_unref (icon_theme_ditem);
|
||||
g_free (icon_theme_file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
hidden_theme_icon = gnome_desktop_item_get_string (icon_theme_ditem, "Icon Theme/Hidden");
|
||||
if (hidden_theme_icon == NULL ||
|
||||
strcmp (hidden_theme_icon, "false") == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue