diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/prefs-dialog.c | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-01-24 Christian Persch <chpe@cvs.gnome.org> + * src/prefs-dialog.c: (get_download_button_label): + + Fall back to Home directory when the pref is NULL. + +2004-01-24 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-file-chooser.c: (ephy_file_chooser_get_type), (current_folder_changed_cb): diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 883406862..18d4dd1c4 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -1090,6 +1090,12 @@ get_download_button_label () downloads_path = g_build_path (g_get_home_dir (), "Desktop", _("Downloads"), NULL); + /* fallback to Home directory */ + if (key == NULL) + { + key = g_strdup ("~"); + } + if (g_utf8_collate (key, "~/Desktop") == 0) { g_free (key); |