]> www.fi.muni.cz Git - evince.git/commitdiff
Do not include in recent menu inexistent documents. Fixes bug #339171.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 14 Jan 2007 17:37:05 +0000 (17:37 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 14 Jan 2007 17:37:05 +0000 (17:37 +0000)
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

ChangeLog
shell/ev-window.c

index 90c638c514fe4c535526453af54510bfdba0756e..6a2c81b6ec103fabf775add6056cfe3532cd6dbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
 2007-01-14  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * po/POTFILES.skip: 
index 07080e74fe876f793566fcde3110bae3d9f5e280..8f5468489ddc0577425f2c991a407be7b745ae91 100644 (file)
@@ -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,