summaryrefslogtreecommitdiff
path: root/demos/constraint-editor
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-07-07 14:09:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2022-07-11 18:24:37 +0100
commitf4f683a469037f3e81003e4f044d441d92432b06 (patch)
tree994867588bd91288e334e37f364f5dcb7d24b095 /demos/constraint-editor
parent63fe3345a73ff2a021752909d05d2275582d97eb (diff)
downloadgtk+-f4f683a469037f3e81003e4f044d441d92432b06.tar.gz
Rename clear_template to dispose_template
Make it more clear that the function is supposed to be called during the dispose sequence of a widget.
Diffstat (limited to 'demos/constraint-editor')
-rw-r--r--demos/constraint-editor/constraint-editor-window.c2
-rw-r--r--demos/constraint-editor/constraint-editor.c2
-rw-r--r--demos/constraint-editor/guide-editor.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/constraint-editor/constraint-editor-window.c b/demos/constraint-editor/constraint-editor-window.c
index 80dc10c1c3..fc47413187 100644
--- a/demos/constraint-editor/constraint-editor-window.c
+++ b/demos/constraint-editor/constraint-editor-window.c
@@ -363,7 +363,7 @@ save_cb (GtkWidget *button,
static void
constraint_editor_window_dispose (GObject *object)
{
- gtk_widget_clear_template (GTK_WIDGET (object), CONSTRAINT_EDITOR_WINDOW_TYPE);
+ gtk_widget_dispose_template (GTK_WIDGET (object), CONSTRAINT_EDITOR_WINDOW_TYPE);
G_OBJECT_CLASS (constraint_editor_window_parent_class)->dispose (object);
}
diff --git a/demos/constraint-editor/constraint-editor.c b/demos/constraint-editor/constraint-editor.c
index 17407bb439..3e77eca1d4 100644
--- a/demos/constraint-editor/constraint-editor.c
+++ b/demos/constraint-editor/constraint-editor.c
@@ -610,7 +610,7 @@ constraint_editor_dispose (GObject *object)
g_clear_object (&self->model);
g_clear_object (&self->constraint);
- gtk_widget_clear_template (GTK_WIDGET (object), CONSTRAINT_EDITOR_TYPE);
+ gtk_widget_dispose_template (GTK_WIDGET (object), CONSTRAINT_EDITOR_TYPE);
G_OBJECT_CLASS (constraint_editor_parent_class)->dispose (object);
}
diff --git a/demos/constraint-editor/guide-editor.c b/demos/constraint-editor/guide-editor.c
index f7bc039378..6e8e2ac5ac 100644
--- a/demos/constraint-editor/guide-editor.c
+++ b/demos/constraint-editor/guide-editor.c
@@ -296,7 +296,7 @@ guide_editor_dispose (GObject *object)
g_clear_object (&self->guide);
- gtk_widget_clear_template (GTK_WIDGET (self), GUIDE_EDITOR_TYPE);
+ gtk_widget_dispose_template (GTK_WIDGET (self), GUIDE_EDITOR_TYPE);
G_OBJECT_CLASS (guide_editor_parent_class)->dispose (object);
}