[gnome-dictionary] defbox: Fix a compiler warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dictionary] defbox: Fix a compiler warning
- Date: Thu, 2 Apr 2015 17:55:59 +0000 (UTC)
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]