From b662e96e7e8ec83ee64ace74dd4d834a2a2c177d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 8 Apr 2013 15:28:22 +0200 Subject: [PATCH] plug: Don't unregister windows that were never registered Fixes warnings when trying to unregister the socket window. The socket window is foreign, so we shouldn't register it in the first place. https://bugzilla.gnome.org/show_bug.cgi?id=697427 --- gtk/gtkplug.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index 01fc9799e5..c93adebe0e 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -677,7 +677,6 @@ gtk_plug_unrealize (GtkWidget *widget) if (priv->socket_window != NULL) { - gtk_widget_unregister_window (widget, priv->socket_window); g_object_unref (priv->socket_window); priv->socket_window = NULL; @@ -879,7 +878,6 @@ gtk_plug_filter_func (GdkXEvent *gdk_xevent, { GtkWidget *widget = GTK_WIDGET (plug); - gtk_widget_unregister_window (widget, priv->socket_window); g_object_unref (priv->socket_window); priv->socket_window = NULL;