diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-24 20:09:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-24 20:09:48 +0800 |
commit | 5c9e26f898ab481887297ab2eed8348d41a74230 (patch) | |
tree | 164f9f076a05c8efcea4b9b530346e604490e9f3 | |
parent | 949f432f56914a7c1a71de6783b21cb506f1b921 (diff) | |
download | gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.gz gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.bz2 gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.lz gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.xz gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.zst gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.zip |
Fall back to Home directory when the pref is NULL.
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.
-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); |