[gtk/wip/matthiasc/popup2: 46/103] popup: Use gdk_surface_new_popup_full



commit 17b7830fe218e46f8c56bf4cf1491ac7dbd3c5b1
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 19 20:06:58 2019 -0400

    popup: Use gdk_surface_new_popup_full

 gtk/gtkpopup.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkpopup.c b/gtk/gtkpopup.c
index 34dcae7623..6519ffdf03 100644
--- a/gtk/gtkpopup.c
+++ b/gtk/gtkpopup.c
@@ -235,9 +235,7 @@ gtk_popup_realize (GtkWidget *widget)
 
   gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect);
 
-  priv->surface = gdk_surface_new_popup (priv->display, &parent_rect);
-  gdk_surface_set_transient_for (priv->surface, gtk_widget_get_surface (priv->relative_to));
-  gdk_surface_set_type_hint (priv->surface, GDK_SURFACE_TYPE_HINT_POPUP_MENU);
+  priv->surface = gdk_surface_new_popup_full (priv->display, gtk_widget_get_surface (priv->relative_to));
 
   gtk_widget_set_surface (widget, priv->surface);
   g_signal_connect_swapped (priv->surface, "notify::state", G_CALLBACK (surface_state_changed), widget);


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