add a "readable_name" property for icon themes, and make sure "name"
2007-05-25 Jens Granseuer <jensgr@gmx.net> * gnome-theme-info.c: (read_icon_theme): * gnome-theme-info.h: add a "readable_name" property for icon themes, and make sure "name" points to the internal theme name svn path=/trunk/; revision=7660
This commit is contained in:
parent
729d77ed0e
commit
f86808e954
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-05-25 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* gnome-theme-info.c: (read_icon_theme):
|
||||||
|
* gnome-theme-info.h:
|
||||||
|
add a "readable_name" property for icon themes, and make sure "name"
|
||||||
|
points to the internal theme name
|
||||||
|
|
||||||
2007-05-25 Denis Washington <denisw@svn.gnome.org>
|
2007-05-25 Denis Washington <denisw@svn.gnome.org>
|
||||||
|
|
||||||
* theme-thumbnail.c:
|
* theme-thumbnail.c:
|
||||||
|
|
|
@ -421,7 +421,7 @@ read_icon_theme (GnomeVFSURI *icon_theme_uri)
|
||||||
{
|
{
|
||||||
GnomeThemeIconInfo *icon_theme_info;
|
GnomeThemeIconInfo *icon_theme_info;
|
||||||
GnomeDesktopItem *icon_theme_ditem;
|
GnomeDesktopItem *icon_theme_ditem;
|
||||||
char *icon_theme_file;
|
gchar *icon_theme_file;
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
const gchar *hidden_theme_icon;
|
const gchar *hidden_theme_icon;
|
||||||
|
|
||||||
|
@ -445,9 +445,13 @@ read_icon_theme (GnomeVFSURI *icon_theme_uri)
|
||||||
if (hidden_theme_icon == NULL ||
|
if (hidden_theme_icon == NULL ||
|
||||||
strcmp (hidden_theme_icon, "false") == 0)
|
strcmp (hidden_theme_icon, "false") == 0)
|
||||||
{
|
{
|
||||||
|
gchar *dir_name;
|
||||||
icon_theme_info = gnome_theme_icon_info_new ();
|
icon_theme_info = gnome_theme_icon_info_new ();
|
||||||
icon_theme_info->name = g_strdup (name);
|
icon_theme_info->readable_name = g_strdup (name);
|
||||||
icon_theme_info->path = icon_theme_file;
|
icon_theme_info->path = icon_theme_file;
|
||||||
|
dir_name = g_path_get_dirname (icon_theme_file);
|
||||||
|
icon_theme_info->name = g_path_get_basename (dir_name);
|
||||||
|
g_free (dir_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,6 +67,7 @@ struct _GnomeThemeIconInfo
|
||||||
{
|
{
|
||||||
gchar *path;
|
gchar *path;
|
||||||
gchar *name;
|
gchar *name;
|
||||||
|
gchar *readable_name;
|
||||||
gint priority;
|
gint priority;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue