Commit ac61edb9 authored by Tristan Van Berkom's avatar Tristan Van Berkom

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.
parent fed55eaf
......@@ -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))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment