From 9e2cdce58e081c3829008a256ecd8c3b5a7ce1de Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 10 Mar 2015 13:23:06 +0100 Subject: [PATCH] notebook: Fix boolean check Commit c352093bdeb2be5390607de13eaf7a21e93272ef swapped the condition when turning it into a return_if_fail(). --- gtk/gtknotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;