[gnome-dictionary] defbox: Fix a compiler warning



commit 124ee02252c0e48156c8cf4078b574a6df08eef7
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Apr 2 18:55:04 2015 +0100

    defbox: Fix a compiler warning
    
    The function returns a boolean, not a pointer.

 libgdict/gdict-defbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgdict/gdict-defbox.c b/libgdict/gdict-defbox.c
index 0b5694c..66912d6 100644
--- a/libgdict/gdict-defbox.c
+++ b/libgdict/gdict-defbox.c
@@ -2898,7 +2898,7 @@ gdict_defbox_get_has_selection (GdictDefbox *defbox)
   GdictDefboxPrivate *priv;
   GtkTextBuffer *buffer;
 
-  g_return_val_if_fail (GDICT_IS_DEFBOX (defbox), NULL);
+  g_return_val_if_fail (GDICT_IS_DEFBOX (defbox), FALSE);
 
   priv = defbox->priv;
   buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->text_view));


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