diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-01-24 17:56:44 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-01-24 17:56:44 +0800 |
commit | 180df7244c25e3034e0bf8bbc52b875ddb473816 (patch) | |
tree | cca5e34549076ff504b28ccd1297e641e232629a /src/prefs-dialog.c | |
parent | e6f14bc0bd721724d671104a719047203babb361 (diff) | |
download | gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar.gz gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar.bz2 gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar.lz gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar.xz gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.tar.zst gsoc2013-epiphany-180df7244c25e3034e0bf8bbc52b875ddb473816.zip |
Add a persist-position property.
2004-01-24 Marco Pesenti Gritti <marco@gnome.org>
* lib/ephy-dialog.c: (setup_default_size), (ephy_dialog_init),
(ephy_dialog_set_property), (ephy_dialog_get_property),
(ephy_dialog_class_init):
Add a persist-position property.
* embed/downloader-view.c: (downloader_view_new):
Persist downloader position.
* src/prefs-dialog.c: (get_download_button_label):
* embed/mozilla/MozDownload.cpp:
* data/epiphany.schemas.in:
Default to ~/Desktop/Downloads.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 24abf552f..883406862 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -1084,9 +1084,11 @@ create_language_section (EphyDialog *dialog) static char* get_download_button_label () { - char *key, *label; + char *key, *label, *downloads_path; key = eel_gconf_get_string (CONF_STATE_DOWNLOAD_DIR); + downloads_path = g_build_path (g_get_home_dir (), "Desktop", + _("Downloads"), NULL); if (g_utf8_collate (key, "~/Desktop") == 0) { @@ -1102,7 +1104,7 @@ get_download_button_label () * filechooser */ label = g_strdup (_("Home")); } - else if (g_utf8_collate (key, "~/Downloads") == 0) + else if (g_utf8_collate (key, downloads_path) == 0) { g_free (key); label = g_strdup (_("Downloads")); @@ -1112,6 +1114,8 @@ get_download_button_label () label = key; } + g_free (downloads_path); + return label; } |