[gtk/wip/matthiasc/popup5: 100/152] widget: Remove a popover special case



commit a4330dfe24033d00137eab7cd3081cd6ee70195a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 4 19:06:40 2019 +0000

    widget: Remove a popover special case
    
    We never run this since GtkPopover has its
    own size_allocate, anyway.

 gtk/gtkwidget.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index cee51ffd92..6b2f6ea981 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]