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:
parent
00fbe35846
commit
1a1b1a5c6f
1 changed files with 3 additions and 4 deletions
|
@ -428,15 +428,14 @@ children_changed (GSettings *settings,
|
|||
CcNotificationsPanel *panel)
|
||||
{
|
||||
int i;
|
||||
const gchar **new_app_ids;
|
||||
gchar **new_app_ids;
|
||||
|
||||
g_settings_get (panel->master_settings,
|
||||
"application-children",
|
||||
"^a&s", &new_app_ids);
|
||||
"^as", &new_app_ids);
|
||||
for (i = 0; new_app_ids[i]; i++)
|
||||
maybe_add_app_id (panel, new_app_ids[i]);
|
||||
|
||||
g_free (new_app_ids);
|
||||
g_strfreev (new_app_ids);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue