[gtk/wip/matthiasc/popup2: 79/126] popup: Use gdk_surface_new_popup_full
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 79/126] popup: Use gdk_surface_new_popup_full
- Date: Tue, 26 Mar 2019 23:34:25 +0000 (UTC)
commit 588bf9aaaa22e8c7a1848ca10bc0dc9587737d29
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]