[gnome-control-center/gnome-3-12] notifications: Add better debug for saved apps
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] notifications: Add better debug for saved apps
- Date: Thu, 17 Jul 2014 14:58:38 +0000 (UTC)
commit 75209f902d4c54ecd2b66c5f6c2434a522109b87
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 1 16:23:11 2014 +0200
notifications: Add better debug for saved apps
So we can see the apps for which there already are saved settings.
panels/notifications/cc-notifications-panel.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index f2cc9ed..1db3bf4 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -274,6 +274,8 @@ maybe_add_app_id (CcNotificationsPanel *panel,
app_info = G_APP_INFO (g_desktop_app_info_new (full_app_id));
if (app_info == NULL) {
+ g_debug ("Not adding application '%s' (canonical app ID: %s)",
+ full_app_id, canonical_app_id);
/* The application cannot be found, probably it was uninstalled */
g_object_unref (settings);
} else {
@@ -282,6 +284,9 @@ maybe_add_app_id (CcNotificationsPanel *panel,
app->settings = settings;
app->app_info = app_info;
+ g_debug ("Adding application '%s' (canonical app ID: %s)",
+ full_app_id, canonical_app_id);
+
add_application (panel, app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]