From d7af60161d30c885ebab69c58b346896f1565387 Mon Sep 17 00:00:00 2001 From: Peter Eisenmann Date: Wed, 22 Mar 2023 13:32:51 +0100 Subject: properties-window: fix execution switch behavior Changes in GTK (https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5442) require to use `gtk_switch_set_active` to flip a switch, otherwise it ends up in an inconsistent state. Fixes #2883 --- src/nautilus-properties-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index 171cb626e..98fae514c 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -3001,8 +3001,8 @@ update_execution_row (GtkWidget *row, G_CALLBACK (execution_bit_changed), self); - gtk_switch_set_state (self->execution_switch, - target_perm->file_exec_permissions == PERMISSION_EXEC); + gtk_switch_set_active (self->execution_switch, + target_perm->file_exec_permissions == PERMISSION_EXEC); g_signal_handlers_unblock_by_func (self->execution_switch, G_CALLBACK (execution_bit_changed), -- cgit v1.2.1