[gnome-photos/wip/rishi/collection: 15/43] Revert "application: Create SearchContextState once Application is constructed"



commit 100b3841ad8ebc64ff14e42eef95871e11145b77
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 2 03:12:42 2018 +0100

    Revert "application: Create SearchContextState once Application is constructed"
    
    This reverts commit 54836f50eea2e2960a478a456687cb6be970eb3a.

 src/photos-application.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 5ca19135..8daef416 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -2305,8 +2305,6 @@ photos_application_constructed (GObject *object)
 
   G_OBJECT_CLASS (photos_application_parent_class)->constructed (object);
 
-  self->state = photos_search_context_state_new (PHOTOS_SEARCH_CONTEXT (self));
-
   app_id = g_application_get_application_id (G_APPLICATION (self));
   g_set_prgname (app_id);
 }
@@ -2425,6 +2423,7 @@ photos_application_init (PhotosApplication *self)
 
   photos_utils_ensure_builtins ();
 
+  self->state = photos_search_context_state_new (PHOTOS_SEARCH_CONTEXT (self));
   self->activation_timestamp = GDK_CURRENT_TIME;
 
   g_application_add_main_option_entries (G_APPLICATION (self), COMMAND_LINE_OPTIONS);


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