notifications: fix invalid format string

GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain
'&' (key 'application-children' from schema
'org.gnome.desktop.notifications'). This call will probably stop working
with a future version of glib.

This is fallout from https://bugzilla.gnome.org/show_bug.cgi?id=719979

https://bugzilla.gnome.org/show_bug.cgi?id=721430
This commit is contained in:
Michael Catanzaro 2014-01-03 14:28:28 -06:00
parent 00fbe35846
commit 1a1b1a5c6f

View file

@ -428,15 +428,14 @@ children_changed (GSettings *settings,
CcNotificationsPanel *panel) CcNotificationsPanel *panel)
{ {
int i; int i;
const gchar **new_app_ids; gchar **new_app_ids;
g_settings_get (panel->master_settings, g_settings_get (panel->master_settings,
"application-children", "application-children",
"^a&s", &new_app_ids); "^as", &new_app_ids);
for (i = 0; new_app_ids[i]; i++) for (i = 0; new_app_ids[i]; i++)
maybe_add_app_id (panel, new_app_ids[i]); maybe_add_app_id (panel, new_app_ids[i]);
g_strfreev (new_app_ids);
g_free (new_app_ids);
} }
static void static void