summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-19 20:06:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-03-26 19:18:39 -0400
commit588bf9aaaa22e8c7a1848ca10bc0dc9587737d29 (patch)
tree1e813ff994b07dd7c4b66f413dd158d4905528a0
parent80a75b56a25245309b6dbdb54ba593a00cbf06c2 (diff)
downloadgtk+-588bf9aaaa22e8c7a1848ca10bc0dc9587737d29.tar.gz
popup: Use gdk_surface_new_popup_full
-rw-r--r--gtk/gtkpopup.c4
1 files changed, 1 insertions, 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);