mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
widget: Remove a popover special case
We never run this since GtkPopover has its own size_allocate, anyway.
This commit is contained in:
parent
a33d4f0f49
commit
61247a8921
@ -4641,19 +4641,6 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
|
||||
int height,
|
||||
int baseline)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
|
||||
if (_gtk_widget_get_realized (widget) &&
|
||||
_gtk_widget_get_has_surface (widget) &&
|
||||
GTK_IS_POPOVER (widget))
|
||||
{
|
||||
GtkAllocation window_alloc;
|
||||
|
||||
gtk_widget_get_surface_allocation (widget, &window_alloc);
|
||||
gdk_surface_move_resize (priv->surface,
|
||||
window_alloc.x, window_alloc.y,
|
||||
window_alloc.width, window_alloc.height);
|
||||
}
|
||||
}
|
||||
|
||||
/* translate initial/final into start/end */
|
||||
|
Loading…
Reference in New Issue
Block a user