mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
widget: Check rootness for invisibility
Make the function that determines initial visibility look at whether the class implements GtkRoot. That is the eventual goal for this check. For now, allow popovers in here as well.
This commit is contained in:
parent
2870f4dbfe
commit
7ca528b896
@ -12087,7 +12087,7 @@ gtk_widget_class_set_css_name (GtkWidgetClass *widget_class,
|
||||
static gboolean
|
||||
gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class)
|
||||
{
|
||||
return !(GTK_IS_WINDOW_CLASS (widget_class) ||
|
||||
return !(g_type_is_a (G_TYPE_FROM_CLASS (widget_class), GTK_TYPE_ROOT) ||
|
||||
GTK_IS_POPOVER_CLASS (widget_class));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user