[gthumb] Use the PICTURES special dir as the default startup location
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Use the PICTURES special dir as the default startup location
- Date: Sun, 13 Nov 2011 18:13:12 +0000 (UTC)
commit 8e8cbc8c26ca2c76c271afbcd2ef076d63579236
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Nov 13 15:25:19 2011 +0100
Use the PICTURES special dir as the default startup location
gthumb/gth-preferences.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-preferences.c b/gthumb/gth-preferences.c
index bd08e7a..86a5c06 100644
--- a/gthumb/gth-preferences.c
+++ b/gthumb/gth-preferences.c
@@ -61,7 +61,17 @@ gth_pref_initialize (void)
{
char *startup_location;
- startup_location = eel_gconf_get_path (PREF_STARTUP_LOCATION, NULL);
+ startup_location = _g_settings_get_uri (settings, PREF_BROWSER_STARTUP_LOCATION);
+ if (startup_location == NULL) {
+ GFile *file;
+
+ file = g_file_new_for_path (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES));
+ startup_location = g_file_get_uri (file);
+
+ g_object_unref (file);
+ }
+ if (startup_location == NULL)
+ startup_location = g_strdup (get_home_uri ());
gth_pref_set_startup_location (startup_location);
g_free (startup_location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]