Commit d8189a64 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

Revert "HdyHeaderGroup: Disconnect from header bar's signals during dispose"

Since commit c5bf27d4 header bars are
destroyed before header group, so when destroying the header group, the
list of header bars is always empty, so there's nothing to unref anymore.

Reverts commit 14e5fc7b.
parent c5bf27d4
......@@ -307,10 +307,6 @@ hdy_header_group_dispose (GObject *object)
HdyHeaderGroup *self = (HdyHeaderGroup *)object;
HdyHeaderGroupPrivate *priv = hdy_header_group_get_instance_private (self);
for (GSList *elem = priv->header_bars; elem; elem = elem->next) {
GtkHeaderBar *bar = GTK_HEADER_BAR (elem->data);
g_signal_handlers_disconnect_by_data (bar, self);
g_slist_free_full (priv->header_bars, (GDestroyNotify) g_object_unref);
priv->header_bars = NULL;
priv->focus = NULL;
Supports Markdown
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