From ac61edb9fce0cbd1de6fcce6b76bbabfd2edaef1 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 15 Jan 2011 21:34:49 +0900 Subject: [PATCH] Avoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags(). The tab can be NULL here when GtkNotebook:show-tabs is FALSE. --- gtk/gtknotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 0d9d9fad46..e94518d29c 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1901,7 +1901,7 @@ _gtk_notebook_get_tab_flags (GtkNotebook *notebook, { GtkNotebookPage *p = pages->data; - if (!gtk_widget_get_visible (p->tab_label)) + if (!p->tab_label || !gtk_widget_get_visible (p->tab_label)) continue; i++;