[sysprof/wip/gtk4-port] environeditorrow: port to GTK 4



commit ddda3e756c3a1d823db6d0076cd79f8aad06d735
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 1 10:42:19 2021 -0700

    environeditorrow: port to GTK 4

 src/libsysprof-ui/sysprof-environ-editor-row.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-environ-editor-row.c b/src/libsysprof-ui/sysprof-environ-editor-row.c
index d1ab1002..a7dd7b0c 100644
--- a/src/libsysprof-ui/sysprof-environ-editor-row.c
+++ b/src/libsysprof-ui/sysprof-environ-editor-row.c
@@ -127,9 +127,9 @@ value_entry_activate (GtkWidget               *entry,
 }
 
 static void
-sysprof_environ_editor_row_destroy (GtkWidget *widget)
+sysprof_environ_editor_row_dispose (GObject *object)
 {
-  SysprofEnvironEditorRow *self = (SysprofEnvironEditorRow *)widget;
+  SysprofEnvironEditorRow *self = (SysprofEnvironEditorRow *)object;
 
   if (self->variable != NULL)
     {
@@ -137,7 +137,7 @@ sysprof_environ_editor_row_destroy (GtkWidget *widget)
       g_clear_object (&self->variable);
     }
 
-  GTK_WIDGET_CLASS (sysprof_environ_editor_row_parent_class)->destroy (widget);
+  G_OBJECT_CLASS (sysprof_environ_editor_row_parent_class)->dispose (object);
 }
 
 static void
@@ -184,11 +184,10 @@ sysprof_environ_editor_row_class_init (SysprofEnvironEditorRowClass *klass)
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
+  object_class->dispose = sysprof_environ_editor_row_dispose;
   object_class->get_property = sysprof_environ_editor_row_get_property;
   object_class->set_property = sysprof_environ_editor_row_set_property;
 
-  widget_class->destroy = sysprof_environ_editor_row_destroy;
-
   gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/sysprof/ui/sysprof-environ-editor-row.ui");
   gtk_widget_class_bind_template_child (widget_class, SysprofEnvironEditorRow, delete_button);
   gtk_widget_class_bind_template_child (widget_class, SysprofEnvironEditorRow, key_entry);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]