mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
widget: guard popover-specific code paths
This is essentially a special case just for GtkPopover, which is the last widget with a child surface.
This commit is contained in:
parent
ff1150d87c
commit
afcf3e66f6
@ -4439,7 +4439,8 @@ gtk_widget_allocate (GtkWidget *widget,
|
||||
{
|
||||
/* Still have to move the window... */
|
||||
if (_gtk_widget_get_realized (widget) &&
|
||||
_gtk_widget_get_has_surface (widget))
|
||||
_gtk_widget_get_has_surface (widget) &&
|
||||
GTK_IS_POPOVER (widget))
|
||||
{
|
||||
GtkAllocation window_alloc;
|
||||
|
||||
@ -4652,7 +4653,8 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
|
||||
if (_gtk_widget_get_realized (widget) &&
|
||||
_gtk_widget_get_has_surface (widget))
|
||||
_gtk_widget_get_has_surface (widget) &&
|
||||
GTK_IS_POPOVER (widget))
|
||||
{
|
||||
GtkAllocation window_alloc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user