Commit dd678ac3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Avoid a warning when finalizing toolbars

Recent changes cause disposing menus to emit ::deactivate. So better
disconnect the deactivate handler first.
parent 65876524
......@@ -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);
......
Markdown is supported
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