[gnome-documents] places-bookmarks: Don't load links if EvDocumentLinks is unimplemented



commit 74cf61447ddcb46c1b9e6f27455838f25bd4da10
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jun 7 15:20:48 2013 +0200

    places-bookmarks: Don't load links if EvDocumentLinks is unimplemented
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701788

 src/lib/gd-places-bookmarks.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/gd-places-bookmarks.c b/src/lib/gd-places-bookmarks.c
index c2697d8..f235427 100644
--- a/src/lib/gd-places-bookmarks.c
+++ b/src/lib/gd-places-bookmarks.c
@@ -376,7 +376,8 @@ gd_places_bookmarks_update (GdPlacesBookmarks *self)
                                     COLUMN_PAGE_LABEL, NULL,
                                     COLUMN_BOOKMARK, NULL,
                                     -1);
-        } else if (ev_document_links_has_document_links (EV_DOCUMENT_LINKS (document))) {
+        } else if (EV_IS_DOCUMENT_LINKS (document) &&
+                   ev_document_links_has_document_links (EV_DOCUMENT_LINKS (document))) {
                 gtk_list_store_append (model, &iter);
                 gtk_list_store_set (model, &iter,
                                     COLUMN_MARKUP, _("Loading…"),


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