[gtk/wip/matthiasc/popup5: 137/139] widget: Remove a popover special case
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 137/139] widget: Remove a popover special case
- Date: Sun, 5 May 2019 22:20:50 +0000 (UTC)
commit d7ef4c8333a340b88b5d4c5314122e38c50738f6
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 689e10c438..332c8f2fc6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4638,19 +4638,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]