Commit a3e79757 authored by Christian Hergert's avatar Christian Hergert
Browse files

shortcuts: cleanup more state on widget destruction

parent e651c52e
......@@ -253,10 +253,19 @@ static void
dzl_shortcut_controller_widget_destroy (DzlShortcutController *self,
GtkWidget *widget)
DzlShortcutControllerPrivate *priv = dzl_shortcut_controller_get_instance_private (self);
g_assert (GTK_IS_WIDGET (widget));
dzl_shortcut_controller_disconnect (self);
g_clear_weak_pointer (&priv->widget);
if (priv->root != NULL)
dzl_shortcut_controller_remove (priv->root, self);
g_clear_object (&priv->root);
static void
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