diff --git a/capplets/common/ChangeLog b/capplets/common/ChangeLog index 17619d096..3d85a8c03 100644 --- a/capplets/common/ChangeLog +++ b/capplets/common/ChangeLog @@ -1,3 +1,10 @@ +2008-05-01 Jens Granseuer + + * gnome-theme-info.c: (read_cursor_theme), (read_cursor_fonts), + (update_theme_index): always use URIs instead for info->path; since + gio cleanly distinguishes path/uri (contrary to gnome-vfs), the + random mix we have right now is becoming a nuisance + 2008-05-01 Jens Granseuer * gnome-theme-apply.c: diff --git a/capplets/common/gnome-theme-info.c b/capplets/common/gnome-theme-info.c index 07a77a515..51016089f 100644 --- a/capplets/common/gnome-theme-info.c +++ b/capplets/common/gnome-theme-info.c @@ -532,7 +532,7 @@ read_cursor_theme (GFile *cursor_theme_uri) } cursor_theme_info = gnome_theme_cursor_info_new (); - cursor_theme_info->path = g_file_get_path (parent_uri); + cursor_theme_info->path = g_file_get_uri (parent_uri); cursor_theme_info->name = name; cursor_theme_info->sizes = sizes; cursor_theme_info->thumbnail = thumbnail; @@ -658,7 +658,7 @@ read_cursor_fonts (void) theme_info->thumbnail = gdk_pixbuf_new_from_file (filename, NULL); g_free (filename); - theme_info->path = g_build_filename (GNOMECC_DATA_DIR, builtins[i][0], NULL); + theme_info->path = g_build_filename ("file://" GNOMECC_DATA_DIR, builtins[i][0], NULL); theme_info->name = g_strdup (theme_info->path); if (!strcmp (theme_info->path, cursor_font)) @@ -753,7 +753,7 @@ update_theme_index (GFile *index_uri, /* Next, we see what currently exists */ parent = g_file_get_parent (index_uri); common_theme_dir_uri = g_file_get_parent (parent); - common_theme_dir = g_file_get_path (common_theme_dir_uri); + common_theme_dir = g_file_get_uri (common_theme_dir_uri); theme_info = g_hash_table_lookup (theme_hash_by_uri, common_theme_dir); if (theme_info == NULL) {