[nautilus/wip/oholy/ci-style-check: 22/29] toolbar: Add redundant parentheses to prevent changes by uncrustify



commit 8713bb1aa5520e6f4bf760e0ef625c0c9602811e
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]