Skip to content
Commit f329f501 authored by Carlos Soriano Sánchez's avatar Carlos Soriano Sánchez
Browse files

toolbar: use finalize instead of dispose

We were disconnecting all the signals on dispose, except
the ones that comes from the widgets and are added with
gtk_widget_class_bind_template_callback. Therefore those
can be emitted after a dispose.

In the toolbar case, we connect to the toggle signal of a
button, which when the toolbar gets disposed, the buttons gets
untoggled and the signal is emitted, then the toolbar tries to
perform actions on external data that was cleared already on dispose.

To avoid that, just clear the data on finalize instead of
dispose.
parent 940d6d7b
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