[gnome-photos] view-container: Assert that selection is restricted to the current mode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-container: Assert that selection is restricted to the current mode
- Date: Wed, 24 Aug 2016 17:02:46 +0000 (UTC)
commit a243a9110ce6edb1a786d502ced2ec21594acc2b
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 24 18:49:32 2016 +0200
view-container: Assert that selection is restricted to the current mode
src/photos-view-container.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index 0927183..d5ea674 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -215,6 +215,10 @@ photos_view_container_view_selection_changed (PhotosViewContainer *self)
{
GList *selected_urns;
GList *selection;
+ PhotosWindowMode mode;
+
+ mode = photos_mode_controller_get_window_mode (self->mode_cntrlr);
+ g_return_if_fail (self->mode == mode);
selection = gd_main_view_get_selection (self->view);
selected_urns = photos_utils_get_urns_from_paths (selection, GTK_TREE_MODEL (self->model));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]