diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2ff433def2..d86f74fc11 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4028,13 +4028,11 @@ unset_titlebar (GtkWindow *window) { GtkWindowPrivate *priv = window->priv; - if (priv->titlebar != NULL) - g_signal_handlers_disconnect_by_func (priv->titlebar, - on_titlebar_title_notify, - window); - if (priv->title_box != NULL) { + g_signal_handlers_disconnect_by_func (priv->title_box, + on_titlebar_title_notify, + window); gtk_widget_unparent (priv->title_box); priv->title_box = NULL; priv->titlebar = NULL;