[gnome-control-center/gnome-3-12] notifications: Fix duplicates in application list
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] notifications: Fix duplicates in application list
- Date: Thu, 17 Jul 2014 14:58:43 +0000 (UTC)
commit 2c94615c004d5ba777f78d128c22ccfb9f23ce25
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 1 16:23:55 2014 +0200
notifications: Fix duplicates in application list
When saving applications in the "application-children" list, gnome-shell
will lower-case the whole canonical application ID in _canonicalizeId().
Match _canonicalizeId()'s behaviour, and lower-case the canonical
application ID so we don't try to load "org-gnome-Software" from
GNOME-Software's desktop file in addition to the already saved
"org-gnome-software".
https://bugzilla.gnome.org/show_bug.cgi?id=729447
panels/notifications/cc-notifications-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index 1db3bf4..ad26825 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -362,6 +362,7 @@ process_app_info (CcNotificationsPanel *panel,
char *path;
GSettings *settings;
GSource *source;
+ guint i;
app_id = app_info_get_id (app_info);
canonical_app_id = g_strcanon (app_id,
@@ -370,6 +371,8 @@ process_app_info (CcNotificationsPanel *panel,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"-",
'-');
+ for (i = 0; canonical_app_id[i] != '\0'; i++)
+ canonical_app_id[i] = g_ascii_tolower (canonical_app_id[i]);
path = g_strconcat (APP_PREFIX, canonical_app_id, "/", NULL);
settings = g_settings_new_with_path (APP_SCHEMA, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]