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.
This commit is contained in:
Tristan Van Berkom
2011-01-15 21:34:49 +09:00
parent fed55eaf36
commit ac61edb9fc

View File

@ -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++;