[evince/wip/recent-view: 4/12] bookshelf: Add files to bookshelf only if they exists



commit ecdcaa94d6bfec79ea5cc145a0c74dbd5e3aa36f
Author: Aakash Goenka <aakash goenka gmail com>
Date:   Tue Jul 9 04:17:52 2013 +0530

    bookshelf: Add files to bookshelf only if they exists
    
    Use gtk_recent_info_get_exists to ensure that the items added to
    the bookshelf exist.

 shell/ev-bookshelf.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-bookshelf.c b/shell/ev-bookshelf.c
index 7173c6c..bb7b83c 100644
--- a/shell/ev-bookshelf.c
+++ b/shell/ev-bookshelf.c
@@ -436,6 +436,9 @@ ev_bookshelf_refresh (EvBookshelf *ev_bookshelf)
                if (!gtk_recent_info_has_application (info, evince))
                        continue;
 
+               if (gtk_recent_info_is_local (info) && !gtk_recent_info_exists (info))
+                       continue;
+
                name = gtk_recent_info_get_display_name (info);
                uri = gtk_recent_info_get_uri (info);
                file = g_file_new_for_uri (uri);


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