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



commit c898e461d6f853770bbb0ef52dc1e80f7b8f33d4
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]