From 69e4f445b6ce8f6b6e778cd103939a7861ab9049 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 14 Jan 2007 17:37:05 +0000 Subject: [PATCH] Do not include in recent menu inexistent documents. Fixes bug #339171. 2007-01-14 Carlos Garcia Campos * shell/ev-window.c: (ev_window_setup_recent): Do not include in recent menu inexistent documents. Fixes bug #339171. svn path=/trunk/; revision=2224 --- ChangeLog | 7 +++++++ shell/ev-window.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90c638c5..6a2c81b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-01-14 Carlos Garcia Campos + + * shell/ev-window.c: (ev_window_setup_recent): + + Do not include in recent menu inexistent documents. Fixes + bug #339171. + 2007-01-14 Carlos Garcia Campos * po/POTFILES.skip: diff --git a/shell/ev-window.c b/shell/ev-window.c index 07080e74..8f546848 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, -- 2.43.5