[gtk/wip/matthiasc/popup4: 37/94] menu: Stop using gtk_widget_register_surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 37/94] menu: Stop using gtk_widget_register_surface
- Date: Sat, 27 Apr 2019 04:44:30 +0000 (UTC)
commit 9216b32cef20cb7632b938f9b30bdb34ac9cf520
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 19 20:13:49 2019 +0000
menu: Stop using gtk_widget_register_surface
It does not seem to be necessary at all.
gtk/gtkmenu.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 820fcdd9c7..e7534a29c3 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2192,7 +2192,6 @@ menu_grab_transfer_surface_get (GtkMenu *menu)
if (!surface)
{
surface = gdk_surface_new_temp (gtk_widget_get_display (GTK_WIDGET (menu)));
- gtk_widget_register_surface (GTK_WIDGET (menu), surface);
gdk_surface_show (surface);
@@ -2210,7 +2209,6 @@ menu_grab_transfer_surface_destroy (GtkMenu *menu)
{
GdkSurface *widget_surface;
- gtk_widget_unregister_surface (GTK_WIDGET (menu), surface);
gdk_surface_destroy (surface);
g_object_set_data (G_OBJECT (menu), I_("gtk-menu-transfer-surface"), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]