mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
environeditorrow: port to GTK 4
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user