[gtk/ebassi/finish-template] Port icon browser to gtk_widget_clear_template()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/finish-template] Port icon browser to gtk_widget_clear_template()
- Date: Wed, 6 Jul 2022 12:30:42 +0000 (UTC)
commit 5f07cea1772361807c24f30e565bb2bcaa8f47ae
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jul 6 13:23:23 2022 +0100
Port icon browser to gtk_widget_clear_template()
demos/icon-browser/iconbrowserwin.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index 4dbc054057..6a130c45a1 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -409,6 +409,14 @@ icon_browser_window_init (IconBrowserWindow *win)
g_signal_connect (win->context_model, "notify::selected", G_CALLBACK (selected_name_changed), win);
}
+static void
+icon_browser_window_dispose (GObject *object)
+{
+ gtk_widget_clear_template (GTK_WIDGET (object), ICON_BROWSER_WINDOW_TYPE);
+
+ G_OBJECT_CLASS (icon_browser_window_parent_class)->dispose (object);
+}
+
static void
icon_browser_window_finalize (GObject *object)
{
@@ -424,6 +432,7 @@ icon_browser_window_class_init (IconBrowserWindowClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
+ object_class->dispose = icon_browser_window_dispose;
object_class->finalize = icon_browser_window_finalize;
g_type_ensure (IB_TYPE_ICON);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]