diff options
author | Ondrej Holy <oholy@redhat.com> | 2020-04-01 10:17:35 +0200 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2020-04-05 16:22:26 +0000 |
commit | 05d35af17b48b0f2427462d1f6feac8d8b1688c5 (patch) | |
tree | 3c99d0ec4c450019b640d56920eebb4be05628f3 | |
parent | b477a7026c73e2105afd26dc32857d5832131954 (diff) | |
download | nautilus-05d35af17b48b0f2427462d1f6feac8d8b1688c5.tar.gz |
toolbar: Add redundant parentheses to prevent changes by uncrustify
Uncrustify makes the following change, which is unwanted:
gtk_widget_set_sensitive (self->view_button, new_sections->extended_section != NULL ||
- new_sections->zoom_section != NULL ||
- new_sections->supports_undo_redo);
+ new_sections->zoom_section != NULL ||
+ new_sections->supports_undo_redo);
Let's add parentheses to prevent this unwanted change.
-rw-r--r-- | src/nautilus-toolbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 53acc9ddc..c3e4daa8f 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -1341,9 +1341,9 @@ on_slot_toolbar_menu_sections_changed (NautilusToolbar *self, new_sections->extended_section, FALSE, FALSE, 0); } - gtk_widget_set_sensitive (self->view_button, new_sections->extended_section != NULL || - new_sections->zoom_section != NULL || - new_sections->supports_undo_redo); + gtk_widget_set_sensitive (self->view_button, (new_sections->extended_section != NULL || + new_sections->zoom_section != NULL || + new_sections->supports_undo_redo)); } |