mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
window: Always disconnect signal handlers
We connect to the titlebar widgets change notification regardless whether it is internally created or not, so don't make the signal handler disconnection conditional on that either.
This commit is contained in:
parent
88c3456d2f
commit
625f3e5f39
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user