[gtk/wip/matthiasc/popup5: 64/150] menu: Stop using gdk_surface_new_temp
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 64/150] menu: Stop using gdk_surface_new_temp
- Date: Fri, 24 May 2019 02:03:34 +0000 (UTC)
commit d4e6512180b2f8e1aea351659d810fbdffa344fc
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 20 04:32:00 2019 +0000
menu: Stop using gdk_surface_new_temp
We can just as well use gdk_surface_new_popup.
gtk/gtkmenu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index aabb339a8b..4aca9c31ec 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2199,7 +2199,8 @@ menu_grab_transfer_surface_get (GtkMenu *menu)
GdkSurface *surface = g_object_get_data (G_OBJECT (menu), "gtk-menu-transfer-surface");
if (!surface)
{
- surface = gdk_surface_new_temp (gtk_widget_get_display (GTK_WIDGET (menu)));
+ GdkRectangle rect = { -100, -100, 1, 1 };
+ surface = gdk_surface_new_popup (gtk_widget_get_display (GTK_WIDGET (menu)), &rect);
gdk_surface_show (surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]