forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
5e7df8bf14
commit
b662e96e7e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user