[evince] Do not remove unexistent files from recent menu



commit df46a24a7d52b217182f01be995721255941128e
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat Jun 2 11:10:47 2012 +0200

    Do not remove unexistent files from recent menu
    
    The problem is that gtk_recent_info_exists() does a stat on the file to
    check whether it exists, and thta causes a problem on locally mounted
    remote or external file systems. So, I think it's better to have
    unexitent files in the recent menu (which is unlikley) than slowing down
    evince startup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674188

 shell/ev-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index ae9a9cc..2cd76f2 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2643,8 +2643,7 @@ ev_window_setup_recent (EvWindow *ev_window)
 
 		info = (GtkRecentInfo *) l->data;
 
-		if (!gtk_recent_info_has_application (info, evince) ||
-		    (gtk_recent_info_is_local (info) && !gtk_recent_info_exists (info)))
+		if (!gtk_recent_info_has_application (info, evince))
 			continue;
 
 		action_name = g_strdup_printf ("RecentFile%u", i++);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]