[gtk/ebassi/finish-template: 14/15] fontchooserdialog: Use gtk_widget_clear_template()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/finish-template: 14/15] fontchooserdialog: Use gtk_widget_clear_template()
- Date: Mon, 11 Jul 2022 17:26:43 +0000 (UTC)
commit 63fe3345a73ff2a021752909d05d2275582d97eb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jul 7 13:59:18 2022 +0100
fontchooserdialog: Use gtk_widget_clear_template()
gtk/gtkfontchooserdialog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfontchooserdialog.c b/gtk/gtkfontchooserdialog.c
index e731df8e45..6fefcce24a 100644
--- a/gtk/gtkfontchooserdialog.c
+++ b/gtk/gtkfontchooserdialog.c
@@ -229,10 +229,10 @@ gtk_font_chooser_dialog_dispose (GObject *object)
dialog);
}
- g_clear_pointer (&dialog->select_button, gtk_widget_unparent);
- g_clear_pointer (&dialog->cancel_button, gtk_widget_unparent);
+ /* tweak_button is not a template child */
g_clear_pointer (&dialog->tweak_button, gtk_widget_unparent);
- g_clear_pointer (&dialog->fontchooser, gtk_widget_unparent);
+
+ gtk_widget_clear_template (GTK_WIDGET (dialog), GTK_TYPE_FONT_CHOOSER_DIALOG);
G_OBJECT_CLASS (gtk_font_chooser_dialog_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]