[gtk/wip/otte/matthiasc/popup2: 41/92] popup: Remove some unnecessary things
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/matthiasc/popup2: 41/92] popup: Remove some unnecessary things
- Date: Fri, 19 Apr 2019 16:08:43 +0000 (UTC)
commit 65ee422340dec6df8e17110a2467a90b0dc4f85e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 19 17:46:25 2019 -0400
popup: Remove some unnecessary things
gtk/gtkpopup.c | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
---
diff --git a/gtk/gtkpopup.c b/gtk/gtkpopup.c
index 366a113b7b..e60547ba25 100644
--- a/gtk/gtkpopup.c
+++ b/gtk/gtkpopup.c
@@ -233,18 +233,6 @@ gtk_popup_realize (GtkWidget *widget)
GtkPopupPrivate *priv = gtk_popup_get_instance_private (popup);
GdkRectangle parent_rect;
- if (_gtk_widget_get_alloc_needed (widget))
- {
- GdkRectangle allocation;
-
- allocation.x = 0;
- allocation.y = 0;
- allocation.width = 20; // FIXME
- allocation.height = 20;
- gtk_widget_size_allocate (widget, &allocation, -1);
- gtk_widget_queue_resize (widget);
- }
-
gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect);
priv->surface = gdk_surface_new_popup (priv->display, &parent_rect);
@@ -427,11 +415,7 @@ gtk_popup_size_allocate (GtkWidget *widget,
GtkPopupPrivate *priv = gtk_popup_get_instance_private (popup);
if (priv->surface)
- {
- // FIXME why is this needed ?
- gdk_surface_move_resize (priv->surface, 0, 0, width, height);
- gtk_popup_move_resize (popup);
- }
+ gtk_popup_move_resize (popup);
child = gtk_bin_get_child (GTK_BIN (widget));
gtk_widget_size_allocate (child, &(GtkAllocation) { 0, 0, width, height }, baseline);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]