[gnome-photos] application: Log the various stages in its lifetime
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Log the various stages in its lifetime
- Date: Mon, 12 Jun 2017 21:56:47 +0000 (UTC)
commit 119868220fce82d868a79abf3afb9b6ffce8add1
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jun 8 15:36:16 2017 +0200
application: Log the various stages in its lifetime
src/photos-application.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 48fb9a1..90619ae 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -750,6 +750,8 @@ photos_application_activate_result (PhotosApplication *self,
{
GObject *item;
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::activate_result");
+
self->activation_timestamp = timestamp;
item = photos_base_manager_get_object_by_id (self->state->item_mngr, identifier);
@@ -912,6 +914,8 @@ photos_application_launch_search (PhotosApplication *self, const gchar* const *t
GVariant *state;
gchar *str;
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::launch_search");
+
if (!photos_application_create_window (self))
return;
@@ -1575,6 +1579,8 @@ photos_application_activate (GApplication *application)
{
PhotosApplication *self = PHOTOS_APPLICATION (application);
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::activate");
+
if (self->main_window == NULL)
{
if (!photos_application_create_window (self))
@@ -1598,6 +1604,11 @@ photos_application_dbus_register (GApplication *application,
gboolean ret_val = FALSE;
gchar *search_provider_path = NULL;
+ photos_debug (PHOTOS_DEBUG_APPLICATION,
+ "PhotosApplication::dbus_register: object_path: %s, search_provider: %p",
+ object_path,
+ self->search_provider);
+
g_return_val_if_fail (self->search_provider == NULL, FALSE);
if (!G_APPLICATION_CLASS (photos_application_parent_class)->dbus_register (application,
@@ -1626,6 +1637,10 @@ photos_application_dbus_register (GApplication *application,
ret_val = TRUE;
out:
+ photos_debug (PHOTOS_DEBUG_APPLICATION,
+ "PhotosApplication::dbus_register: Done: %d, search_provider: %p",
+ ret_val,
+ self->search_provider);
g_free (search_provider_path);
return ret_val;
}
@@ -1638,6 +1653,11 @@ photos_application_dbus_unregister (GApplication *application,
{
PhotosApplication *self = PHOTOS_APPLICATION (application);
+ photos_debug (PHOTOS_DEBUG_APPLICATION,
+ "PhotosApplication::dbus_unregister: object_path: %s, search_provider: %p",
+ object_path,
+ self->search_provider);
+
if (self->search_provider != NULL)
{
gchar *search_provider_path = NULL;
@@ -1649,6 +1669,10 @@ photos_application_dbus_unregister (GApplication *application,
}
G_APPLICATION_CLASS (photos_application_parent_class)->dbus_unregister (application, connection,
object_path);
+
+ photos_debug (PHOTOS_DEBUG_APPLICATION,
+ "PhotosApplication::dbus_unregister: Done: search_provider: %p",
+ self->search_provider);
}
@@ -1657,6 +1681,8 @@ photos_application_handle_local_options (GApplication *application, GVariantDict
{
gint ret_val = -1;
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::handle_local_options");
+
if (g_variant_dict_contains (options, "version"))
{
const gchar *version;
@@ -1676,6 +1702,8 @@ photos_application_shutdown (GApplication *application)
PhotosApplication *self = PHOTOS_APPLICATION (application);
guint refresh_miner_ids_size;
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::shutdown");
+
refresh_miner_ids_size = g_hash_table_size (self->refresh_miner_ids);
g_assert (refresh_miner_ids_size == 0);
@@ -1716,6 +1744,8 @@ photos_application_startup (GApplication *application)
const gchar *zoom_in_accels[3] = {"<Primary>plus", "<Primary>equal", NULL};
const gchar *zoom_out_accels[2] = {"<Primary>minus", NULL};
+ photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::startup");
+
G_APPLICATION_CLASS (photos_application_parent_class)->startup (application);
gegl_init (NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]