mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Avoid a warning when finalizing toolbars
Recent changes cause disposing menus to emit ::deactivate. So better disconnect the deactivate handler first.
This commit is contained in:
parent
6587652433
commit
dd678ac323
@ -3125,8 +3125,12 @@ gtk_toolbar_finalize (GObject *object)
|
||||
g_timer_destroy (priv->timer);
|
||||
|
||||
if (priv->menu)
|
||||
gtk_widget_destroy (GTK_WIDGET (priv->menu));
|
||||
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (priv->menu,
|
||||
menu_deactivated, toolbar);
|
||||
gtk_widget_destroy (GTK_WIDGET (priv->menu));
|
||||
}
|
||||
|
||||
if (priv->idle_id)
|
||||
g_source_remove (priv->idle_id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user