summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-03-10 13:23:06 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-10 13:23:06 +0100
commit9e2cdce58e081c3829008a256ecd8c3b5a7ce1de (patch)
treeede03b560a0d634a0717a2bc1d8d52ce0b460d86
parent94ec6b44184067782925fa7dc8880c0d1fc3fbe8 (diff)
downloadgtk+-9e2cdce58e081c3829008a256ecd8c3b5a7ce1de.tar.gz
notebook: Fix boolean check
Commit c352093bdeb2be5390607de13eaf7a21e93272ef swapped the condition when turning it into a return_if_fail().
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index d2d935451b..889826086c 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -8186,7 +8186,7 @@ gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
g_return_if_fail (GTK_IS_WIDGET (child));
list = CHECK_FIND_CHILD (notebook, child);
- g_return_if_fail (!list);
+ g_return_if_fail (list != NULL);
if (expand)
*expand = GTK_NOTEBOOK_PAGE (list)->expand;