[gtksourceview/wip/chergert/gsv-gtk4: 189/192] styleschemechooserwidget: remove listbox on dispose
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 189/192] styleschemechooserwidget: remove listbox on dispose
- Date: Fri, 7 Aug 2020 18:31:11 +0000 (UTC)
commit 28d2653a32c6b33654cd6c2e05b8645fbf6ee060
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 1 15:55:59 2020 -0700
styleschemechooserwidget: remove listbox on dispose
This is required now for GTK 4 when using templates.
gtksourceview/gtksourcestyleschemechooserwidget.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.c
b/gtksourceview/gtksourcestyleschemechooserwidget.c
index a85068e99..fdec151b2 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.c
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.c
@@ -74,6 +74,7 @@ gtk_source_style_scheme_chooser_widget_dispose (GObject *object)
GtkSourceStyleSchemeChooserWidget *widget = GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET (object);
GtkSourceStyleSchemeChooserWidgetPrivate *priv =
gtk_source_style_scheme_chooser_widget_get_instance_private (widget);
+ g_clear_pointer ((GtkWidget **)&priv->list_box, gtk_widget_unparent);
g_clear_object (&priv->scheme);
G_OBJECT_CLASS (gtk_source_style_scheme_chooser_widget_parent_class)->dispose (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]