[gnome-photos/gnome-3-16] view-container, view-model: Silence -Wswitch-enum



commit 32e3aa6e5d19887485b35c0ae4482677f24f901c
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 26 09:34:13 2015 +0100

    view-container, view-model: Silence -Wswitch-enum

 src/photos-view-container.c |    4 +++-
 src/photos-view-model.c     |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index 3d88097..982f2bb 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012, 2013, 2014 Red Hat, Inc.
+ * Copyright © 2012, 2013, 2014, 2015 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -323,6 +323,8 @@ photos_view_container_constructed (GObject *object)
       priv->offset_cntrlr = photos_offset_search_controller_dup_singleton ();
       break;
 
+    case PHOTOS_WINDOW_MODE_NONE:
+    case PHOTOS_WINDOW_MODE_PREVIEW:
     default:
       g_assert_not_reached ();
       break;
diff --git a/src/photos-view-model.c b/src/photos-view-model.c
index 7eaeabc..2de9f91 100644
--- a/src/photos-view-model.c
+++ b/src/photos-view-model.c
@@ -364,6 +364,8 @@ photos_view_model_constructed (GObject *object)
       priv->trk_cntrlr = photos_tracker_search_controller_dup_singleton ();
       break;
 
+    case PHOTOS_WINDOW_MODE_NONE:
+    case PHOTOS_WINDOW_MODE_PREVIEW:
     default:
       g_assert_not_reached ();
       break;


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