summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisenmann <p3732@getgoogleoff.me>2023-03-22 13:32:51 +0100
committerOndrej Holy <oholy@redhat.com>2023-03-29 14:26:42 +0000
commitd7af60161d30c885ebab69c58b346896f1565387 (patch)
tree6c7b1d8a615550fc9b1de1a7857591e03568c690
parentbb97b053cd69d73b315e12a46a4beea6bbb10172 (diff)
downloadnautilus-d7af60161d30c885ebab69c58b346896f1565387.tar.gz
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
-rw-r--r--src/nautilus-properties-window.c4
1 files 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),