[gnome-photos/wip/rishi/collection: 1/17] application: Create SearchContextState once Application is constructed
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 1/17] application: Create SearchContextState once Application is constructed
- Date: Fri, 12 Jan 2018 16:23:35 +0000 (UTC)
commit 4399a616536431aec13ce2bedfb6a13f3d2a4a8e
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 11 18:50:09 2018 +0100
application: Create SearchContextState once Application is constructed
https://bugzilla.gnome.org/show_bug.cgi?id=751212
src/photos-application.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index b22e8d5c..81f83849 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -2126,6 +2126,8 @@ 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);
}
@@ -2244,7 +2246,6 @@ 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]