[gnome-photos] view-container: Improve a function name
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-container: Improve a function name
- Date: Wed, 24 Aug 2016 17:02:51 +0000 (UTC)
commit 69319c7c49f71fbf44646747f46bba12de6b9961
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 24 18:54:59 2016 +0200
view-container: Improve a function name
src/photos-view-container.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index d5ea674..c11f0ea 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -191,7 +191,14 @@ photos_view_container_select_none (PhotosViewContainer *self)
static void
-photos_view_container_selection_mode_changed (PhotosViewContainer *self, gboolean selection_mode)
+photos_view_container_selection_mode_request (PhotosViewContainer *self)
+{
+ photos_selection_controller_set_selection_mode (self->sel_cntrlr, TRUE);
+}
+
+
+static void
+photos_view_container_set_selection_mode (PhotosViewContainer *self, gboolean selection_mode)
{
PhotosWindowMode window_mode;
@@ -204,13 +211,6 @@ photos_view_container_selection_mode_changed (PhotosViewContainer *self, gboolea
static void
-photos_view_container_selection_mode_request (PhotosViewContainer *self)
-{
- photos_selection_controller_set_selection_mode (self->sel_cntrlr, TRUE);
-}
-
-
-static void
photos_view_container_view_selection_changed (PhotosViewContainer *self)
{
GList *selected_urns;
@@ -254,6 +254,7 @@ photos_view_container_constructed (GObject *object)
GtkWidget *generic_view;
GtkWidget *grid;
PhotosSearchContextState *state;
+ gboolean selection_mode;
gboolean status;
gint size;
@@ -303,7 +304,7 @@ photos_view_container_constructed (GObject *object)
self->sel_cntrlr = photos_selection_controller_dup_singleton ();
g_signal_connect_object (self->sel_cntrlr,
"selection-mode-changed",
- G_CALLBACK (photos_view_container_selection_mode_changed),
+ G_CALLBACK (photos_view_container_set_selection_mode),
self,
G_CONNECT_SWAPPED);
@@ -377,8 +378,9 @@ photos_view_container_constructed (GObject *object)
self,
G_CONNECT_SWAPPED);
- photos_view_container_selection_mode_changed (self,
- photos_selection_controller_get_selection_mode
(self->sel_cntrlr));
+ selection_mode = photos_selection_controller_get_selection_mode (self->sel_cntrlr);
+ photos_view_container_set_selection_mode (self, selection_mode);
+
photos_tracker_controller_start (self->trk_cntrlr);
status = photos_tracker_controller_get_query_status (self->trk_cntrlr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]