[gtk/wip/matthiasc/popup5: 73/128] 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: 73/128] menu: Stop using gdk_surface_new_temp
- Date: Sat, 18 May 2019 16:23:51 +0000 (UTC)
commit e52d6edf0d7e4db5dc89d7bc03826f616fd7dd18
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]