[gtk/ebassi/finish-template: 7/15] Port node editor to gtk_widget_clear_template()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/finish-template: 7/15] Port node editor to gtk_widget_clear_template()
- Date: Mon, 11 Jul 2022 17:26:43 +0000 (UTC)
commit bf75a21deb714d5a0a5f088107c1135e6d66c199
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jul 6 13:23:36 2022 +0100
Port node editor to gtk_widget_clear_template()
demos/node-editor/node-editor-window.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/demos/node-editor/node-editor-window.c b/demos/node-editor/node-editor-window.c
index 68f261183a..d9bc5eff0f 100644
--- a/demos/node-editor/node-editor-window.c
+++ b/demos/node-editor/node-editor-window.c
@@ -873,6 +873,14 @@ dark_mode_cb (GtkToggleButton *button,
NULL);
}
+static void
+node_editor_window_dispose (GObject *object)
+{
+ gtk_widget_clear_template (GTK_WIDGET (object), NODE_EDITOR_WINDOW_TYPE);
+
+ G_OBJECT_CLASS (node_editor_window_parent_class)->dispose (object);
+}
+
static void
node_editor_window_finalize (GObject *object)
{
@@ -967,6 +975,7 @@ node_editor_window_class_init (NodeEditorWindowClass *class)
GObjectClass *object_class = G_OBJECT_CLASS (class);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
+ object_class->dispose = node_editor_window_dispose;
object_class->finalize = node_editor_window_finalize;
gtk_widget_class_set_template_from_resource (widget_class,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]