[gthumb] importer: removed use of xdg_user_dir_lookup
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] importer: removed use of xdg_user_dir_lookup
- Date: Wed, 5 Jan 2011 19:31:22 +0000 (UTC)
commit 2e1a634389d5475f9934775e28fa43de4ca99c91
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jan 5 20:24:51 2011 +0100
importer: removed use of xdg_user_dir_lookup
use g_get_user_special_dir instead
extensions/importer/utils.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/extensions/importer/utils.c b/extensions/importer/utils.c
index c83eb0e..5d16f0f 100644
--- a/extensions/importer/utils.c
+++ b/extensions/importer/utils.c
@@ -32,14 +32,8 @@ gth_import_preferences_get_destination (void)
GFile *folder;
last_destination = eel_gconf_get_string (PREF_IMPORT_DESTINATION, NULL);
- if ((last_destination == NULL) || (*last_destination == 0)) {
- char *default_path;
-
- default_path = xdg_user_dir_lookup ("PICTURES");
- folder = g_file_new_for_path (default_path);
-
- g_free (default_path);
- }
+ if ((last_destination == NULL) || (*last_destination == 0))
+ folder = g_file_new_for_path (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES));
else
folder = g_file_new_for_uri (last_destination);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]