[gtk/ebassi/finish-template] filechooserdialog: Use gtk_widget_clear_template()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/finish-template] filechooserdialog: Use gtk_widget_clear_template()
- Date: Thu, 7 Jul 2022 13:10:12 +0000 (UTC)
commit 1c1e22316652cbfcee2049cbfef72b37ab7349a1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jul 7 13:58:32 2022 +0100
filechooserdialog: Use gtk_widget_clear_template()
gtk/gtkfilechooserdialog.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index 754aebc650..c874d0c31a 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -380,9 +380,7 @@ gtk_file_chooser_dialog_activate_response (GtkWidget *widget,
static void
gtk_file_chooser_dialog_dispose (GObject *object)
{
- GtkFileChooserDialogPrivate *priv = gtk_file_chooser_dialog_get_instance_private (GTK_FILE_CHOOSER_DIALOG
(object));
-
- g_clear_pointer ((GtkWidget **)&priv->widget, gtk_widget_unparent);
+ gtk_widget_clear_template (GTK_WIDGET (object), GTK_TYPE_FILE_CHOOSER_DIALOG);
G_OBJECT_CLASS (gtk_file_chooser_dialog_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]