diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-01-14 17:37:05 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-01-14 17:37:05 (GMT) |
commit | 69e4f445b6ce8f6b6e778cd103939a7861ab9049 (patch) | |
tree | 0b52fe1a6714a4cb6c96373dbc04819ce1e5f5e2 /shell | |
parent | 5ef0f93815b2ceba269f10dde39cdc3762b3fbc3 (diff) |
Do not include in recent menu inexistent documents. Fixes bug #339171.
2007-01-14 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_setup_recent):
Do not include in recent menu inexistent documents. Fixes
bug #339171.
svn path=/trunk/; revision=2224
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 07080e7..8f54684 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1518,7 +1518,8 @@ ev_window_setup_recent (EvWindow *ev_window) info = (GtkRecentInfo *) l->data; - if (!gtk_recent_info_has_application (info, evince)) + if (!gtk_recent_info_has_application (info, evince) || + (gtk_recent_info_is_local (info) && !gtk_recent_info_exists (info))) continue; action_name = g_strdup_printf ("RecentFile%u", i++); @@ -1595,8 +1596,8 @@ file_save_dialog_response_cb (GtkWidget *fc, fd = g_mkstemp (tmp_filename); if (fd == -1) { - gchar *display_name; - gint save_errno = errno; + gchar *display_name; + gint save_errno = errno; display_name = g_filename_display_name (tmp_filename); g_set_error (&error, |