[gtk+] plug: Don't unregister windows that were never registered



commit b662e96e7e8ec83ee64ace74dd4d834a2a2c177d
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 8 15:28:22 2013 +0200

    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 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index 01fc979..c93adeb 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]