From 69e4f445b6ce8f6b6e778cd103939a7861ab9049 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 14 Jan 2007 17:37:05 +0000 Subject: 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 --- (limited to 'shell') 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, -- cgit v0.9.1