[nautilus/wip/oholy/ci-style-check: 15/22] toolbar: Add redundant parentheses to prevent changes by uncrustify
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 15/22] toolbar: Add redundant parentheses to prevent changes by uncrustify
- Date: Sun, 5 Apr 2020 16:23:21 +0000 (UTC)
commit 05d35af17b48b0f2427462d1f6feac8d8b1688c5
Author: Ondrej Holy <oholy redhat com>
Date: Wed Apr 1 10:17:35 2020 +0200
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.
src/nautilus-toolbar.c | 6 +++---
1 file 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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]