diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2011-07-30 12:28:32 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-08-01 06:22:31 +0800 |
commit | 27a5272d09d5623f480258bfee593384d26956ee (patch) | |
tree | 137051c3b91fcea4d0d994ebae8f596bb452923d /src | |
parent | 38e02f6d3aeac853cf14e6edcc84d9e588207d94 (diff) | |
download | gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar.gz gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar.bz2 gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar.lz gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar.xz gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.tar.zst gsoc2013-epiphany-27a5272d09d5623f480258bfee593384d26956ee.zip |
e-file-chooser: remove persist-key
GTK+ has changed the UX of the GtkFileChooser. This has (pragmatically)
deprecated "last save dir" stored by applications themselves.
For Epiphany this means we no longer need a "persist-key" in our file
chooser, and that we have to clean up some GtkFileChooser API use in
followup patches.
This commit removes the property and uses of it.
Bug #655508
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 3 | ||||
-rw-r--r-- | src/popup-commands.c | 1 | ||||
-rw-r--r-- | src/prefs-dialog.c | 2 | ||||
-rw-r--r-- | src/window-commands.c | 2 |
4 files changed, 2 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 2dcee58b4..eeeecac97 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -616,7 +616,7 @@ import_dialog_response_cb (GtkDialog *dialog, dialog = ephy_file_chooser_new (_("Import Bookmarks from File"), GTK_WIDGET (editor), GTK_FILE_CHOOSER_ACTION_OPEN, - NULL, EPHY_FILE_FILTER_NONE); + EPHY_FILE_FILTER_NONE); ephy_file_chooser_add_mime_filter (dialog, @@ -755,7 +755,6 @@ cmd_bookmarks_export (GtkAction *action, dialog = GTK_WIDGET (ephy_file_chooser_new (_("Export Bookmarks"), GTK_WIDGET (editor), GTK_FILE_CHOOSER_ACTION_SAVE, - NULL, EPHY_FILE_FILTER_NONE)); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); diff --git a/src/popup-commands.c b/src/popup-commands.c index 939d6e31b..bc2a4fb18 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -238,7 +238,6 @@ save_property_url (GtkAction *action, base = g_path_get_basename (location); dialog = ephy_file_chooser_new (title, GTK_WIDGET (window), GTK_FILE_CHOOSER_ACTION_SAVE, - EPHY_PREFS_STATE_SAVE_DIR, EPHY_FILE_FILTER_NONE); gtk_file_chooser_set_do_overwrite_confirmation diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index f95620031..748b0658d 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -869,7 +869,7 @@ create_download_path_button (EphyDialog *dialog) fc = ephy_file_chooser_new (_("Select a Directory"), parent, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, - NULL, EPHY_FILE_FILTER_NONE); + EPHY_FILE_FILTER_NONE); /* Unset the destroy-with-parent, since gtkfilechooserbutton doesn't * expect this */ diff --git a/src/window-commands.c b/src/window-commands.c index 762a6c76d..da8a2f960 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -268,7 +268,6 @@ window_cmd_file_open (GtkAction *action, dialog = ephy_file_chooser_new (_("Open"), GTK_WIDGET (window), GTK_FILE_CHOOSER_ACTION_OPEN, - EPHY_PREFS_STATE_OPEN_DIR, EPHY_FILE_FILTER_ALL_SUPPORTED); g_signal_connect (dialog, "response", @@ -331,7 +330,6 @@ window_cmd_file_save_as (GtkAction *action, dialog = ephy_file_chooser_new (_("Save"), GTK_WIDGET (window), GTK_FILE_CHOOSER_ACTION_SAVE, - EPHY_PREFS_STATE_SAVE_DIR, EPHY_FILE_FILTER_NONE); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); |