[evince/wip/recent-view: 4/12] bookshelf: Add files to bookshelf only if they exists
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/recent-view: 4/12] bookshelf: Add files to bookshelf only if they exists
- Date: Mon, 24 Feb 2014 04:04:54 +0000 (UTC)
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]