[gnome-photos] main-window: Silence -Wswitch-enum and -Wswitch-default



commit 80b6a0bcb63a254008de4579b677ce07459fb311
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 11 09:55:13 2015 +0100

    main-window: Silence -Wswitch-enum and -Wswitch-default

 src/photos-main-window.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index 6100aa9..838f96d 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.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
@@ -174,6 +174,8 @@ photos_main_window_go_back (PhotosMainWindow *self)
         photos_item_manager_activate_previous_collection (PHOTOS_ITEM_MANAGER (self->priv->item_mngr));
       break;
 
+    case PHOTOS_WINDOW_MODE_NONE:
+    case PHOTOS_WINDOW_MODE_OVERVIEW:
     default:
       handled = FALSE;
       break;
@@ -255,6 +257,9 @@ photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *even
       photos_preview_view_load_next (preview);
       handled = TRUE;
       break;
+
+    default:
+      break;
     }
 
   return handled;
@@ -297,6 +302,10 @@ photos_main_window_key_press_event (GtkWidget *widget, GdkEventKey *event)
     case PHOTOS_WINDOW_MODE_SEARCH:
       handled = photos_main_window_handle_key_overview (self, event);
       break;
+
+    default:
+      g_assert_not_reached ();
+      break;
     }
 
  out:


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