return to using paths instead of URIs since most of the code using them

2008-05-24  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_read_meta_theme),
	(read_icon_theme), (read_cursor_theme), (read_cursor_fonts),
	(update_theme_index): return to using paths instead of URIs since
	most of the code using them expects paths

2008-05-24  Jens Granseuer  <jensgr@gmx.net>

	* theme-util.c: (theme_is_writable), (theme_delete): expect
	a path instead of an URI in theme_info->path

svn path=/trunk/; revision=8724
This commit is contained in:
Jens Granseuer 2008-05-24 17:19:26 +00:00 committed by Jens Granseuer
parent 2a6e126db2
commit 90d606a496
4 changed files with 26 additions and 17 deletions

View file

@ -100,7 +100,7 @@ theme_is_writable (const gpointer theme)
if (info == NULL || info->path == NULL)
return FALSE;
file = g_file_new_for_uri (info->path);
file = g_file_new_for_path (info->path);
file_info = g_file_query_info (file,
G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE,
G_FILE_QUERY_INFO_NONE,
@ -168,7 +168,7 @@ theme_delete (const gchar *name, ThemeType type)
return FALSE;
}
dir = g_file_new_for_uri (theme_dir);
dir = g_file_new_for_path (theme_dir);
g_free (theme_dir);
if (!file_delete_recursive (dir, NULL)) {