From: Carlos Garcia Campos Date: Sun, 14 Jan 2007 17:37:05 +0000 (+0000) Subject: Do not include in recent menu inexistent documents. Fixes bug #339171. X-Git-Tag: EVINCE_0_7_2~97 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=69e4f445b6ce8f6b6e778cd103939a7861ab9049;p=evince.git 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 --- 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,