diff options
author | raveit65 <[email protected]> | 2016-05-07 17:18:49 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-05-26 16:15:22 +0200 |
commit | fb156ec21432f792bc7ab630db74efe60d57c1e5 (patch) | |
tree | 8ea6af767cbd69ce4b71734158744668671c226e /shell/ev-application.c | |
parent | 44f6596da2c037ba370ef5b3f95d4f3473bd5ad0 (diff) | |
download | atril-fb156ec21432f792bc7ab630db74efe60d57c1e5.tar.bz2 atril-fb156ec21432f792bc7ab630db74efe60d57c1e5.tar.xz |
shell: Do not save file chooser open/save uri
It doesn't make sense anymore since we have multiple processes.
taken from:
https://git.gnome.org/browse/evince/commit/shell/ev-window.c?h=gnome-3-2&id=3df6a61
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r-- | shell/ev-application.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c index 5d24d7a4..c008f57c 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -62,9 +62,6 @@ struct _EvApplication { TotemScrsaver *scr_saver; EggSMClient *smclient; - - gchar *filechooser_open_uri; - gchar *filechooser_save_uri; }; struct _EvApplicationClass { @@ -938,10 +935,6 @@ ev_application_shutdown (EvApplication *application) application->dot_dir = NULL; g_free (application->data_dir); application->data_dir = NULL; - g_free (application->filechooser_open_uri); - application->filechooser_open_uri = NULL; - g_free (application->filechooser_save_uri); - application->filechooser_save_uri = NULL; g_object_unref (application); instance = NULL; @@ -1077,35 +1070,6 @@ ev_application_get_media_keys (EvApplication *application) } void -ev_application_set_filechooser_uri (EvApplication *application, - GtkFileChooserAction action, - const gchar *uri) -{ - if (action == GTK_FILE_CHOOSER_ACTION_OPEN) { - g_free (application->filechooser_open_uri); - application->filechooser_open_uri = g_strdup (uri); - } else if (action == GTK_FILE_CHOOSER_ACTION_SAVE) { - g_free (application->filechooser_save_uri); - application->filechooser_save_uri = g_strdup (uri); - } -} - -const gchar * -ev_application_get_filechooser_uri (EvApplication *application, - GtkFileChooserAction action) -{ - if (action == GTK_FILE_CHOOSER_ACTION_OPEN) { - if (application->filechooser_open_uri) - return application->filechooser_open_uri; - } else if (action == GTK_FILE_CHOOSER_ACTION_SAVE) { - if (application->filechooser_save_uri) - return application->filechooser_save_uri; - } - - return NULL; -} - -void ev_application_screensaver_enable (EvApplication *application) { totem_scrsaver_enable (application->scr_saver); |