[sysprof/wip/gtk4-port: 72/132] environeditorrow: port to GTK 4
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/gtk4-port: 72/132] environeditorrow: port to GTK 4
- Date: Tue, 7 Dec 2021 08:29:12 +0000 (UTC)
commit 8fe3d1d276fcb92bab696d933139f7b357c042d2
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]