[evince] shell: Fix incorrect return type



commit ebe46b8a01fc85d127162e52699e16216cf27f7a
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 17 16:24:41 2017 +0100

    shell: Fix incorrect return type
    
    Should be a gboolean, not a pointer.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780206

 shell/ev-bookmarks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-bookmarks.c b/shell/ev-bookmarks.c
index d172b2a..bfd5725 100644
--- a/shell/ev-bookmarks.c
+++ b/shell/ev-bookmarks.c
@@ -227,7 +227,7 @@ ev_bookmarks_get_bookmarks (EvBookmarks *bookmarks)
 gboolean
 ev_bookmarks_has_bookmarks (EvBookmarks *bookmarks)
 {
-        g_return_val_if_fail (EV_IS_BOOKMARKS (bookmarks), NULL);
+        g_return_val_if_fail (EV_IS_BOOKMARKS (bookmarks), FALSE);
 
         return bookmarks->items != NULL;
 }


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