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:
@ -1901,7 +1901,7 @@ _gtk_notebook_get_tab_flags (GtkNotebook *notebook,
|
|||||||
{
|
{
|
||||||
GtkNotebookPage *p = pages->data;
|
GtkNotebookPage *p = pages->data;
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (p->tab_label))
|
if (!p->tab_label || !gtk_widget_get_visible (p->tab_label))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
Reference in New Issue
Block a user