Skip to content

Commit

Permalink
xapp-icon-chooser-button.c: Use gtk_widget_destroy() to clean up
Browse files Browse the repository at this point in the history
the dialog window.

Treating it as only a GObject causes issues with python bindings
during dispose.

ref: linuxmint/cinnamon#12270
  • Loading branch information
mtwebster committed Sep 4, 2024
1 parent 70bd3a9 commit ebccaa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libxapp/xapp-icon-chooser-button.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ xapp_icon_chooser_button_dispose (GObject *object)
g_clear_pointer (&priv->icon_string, g_free);
g_clear_pointer (&priv->category_string, g_free);

g_clear_object (&priv->dialog);
if (priv->dialog != NULL)
{
gtk_widget_destroy (priv->dialog);
priv->dialog = NULL;
}

G_OBJECT_CLASS (xapp_icon_chooser_button_parent_class)->dispose (object);
}
Expand Down

0 comments on commit ebccaa3

Please sign in to comment.