[gnome-photos/wip/favorites: 2/13] mode-controller: Add a new mode for Favorites



commit 86a66bdc5b07e3d7df3b90c40447e9ee762c943c
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Dec 12 00:34:22 2012 +0530

    mode-controller: Add a new mode for Favorites

 src/photos-mode-controller.c |    2 +-
 src/photos-mode-controller.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-mode-controller.c b/src/photos-mode-controller.c
index 79d056b..b779840 100644
--- a/src/photos-mode-controller.c
+++ b/src/photos-mode-controller.c
@@ -211,7 +211,7 @@ photos_mode_controller_set_window_mode (PhotosModeController *self, PhotosWindow
   if (old_mode == mode)
     return;
 
-  if (mode == PHOTOS_WINDOW_MODE_OVERVIEW)
+  if (mode == PHOTOS_WINDOW_MODE_OVERVIEW || mode == PHOTOS_WINDOW_MODE_FAVORITES)
     photos_mode_controller_set_can_fullscreen (self, FALSE);
 
   priv->mode = mode;
diff --git a/src/photos-mode-controller.h b/src/photos-mode-controller.h
index a867b3e..b3e1647 100644
--- a/src/photos-mode-controller.h
+++ b/src/photos-mode-controller.h
@@ -54,6 +54,7 @@ G_BEGIN_DECLS
 typedef enum
 {
   PHOTOS_WINDOW_MODE_NONE,
+  PHOTOS_WINDOW_MODE_FAVORITES,
   PHOTOS_WINDOW_MODE_OVERVIEW,
   PHOTOS_WINDOW_MODE_PREVIEW
 } PhotosWindowMode;



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