[gnome-photos/wip/rishi/constrained-add: 3/4] item-manager: Style fix



commit 0bf9356df7ca6e97755fd0ce8483ff3adefc1d0f
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 12 11:23:57 2017 +0100

    item-manager: Style fix

 src/photos-item-manager.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 232693b..cd2b88b 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -304,8 +304,10 @@ photos_item_manager_add_cursor_for_mode (PhotosItemManager *self,
   g_return_if_fail (mode != PHOTOS_WINDOW_MODE_PREVIEW);
 
   is_collection = photos_item_manager_cursor_is_collection (cursor);
-  g_return_if_fail ((is_collection && (mode == PHOTOS_WINDOW_MODE_COLLECTIONS || mode == 
PHOTOS_WINDOW_MODE_SEARCH))
-                    || (!is_collection && (mode != PHOTOS_WINDOW_MODE_COLLECTIONS || self->active_collection 
!= NULL)));
+  g_return_if_fail ((is_collection
+                     && (mode == PHOTOS_WINDOW_MODE_COLLECTIONS || mode == PHOTOS_WINDOW_MODE_SEARCH))
+                    || (!is_collection
+                        && (mode != PHOTOS_WINDOW_MODE_COLLECTIONS || self->active_collection != NULL)));
 
   if (!force && !photos_item_manager_can_add_cursor_for_mode (self, cursor, mode))
     goto out;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]