Commit b662e96e authored by Benjamin Otte's avatar Benjamin Otte
Browse files

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
parent 5e7df8bf
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment