They could be different if a notification is queued for delivery and
someone calls g_settings_delay().
Bug #646843.
gboolean ignore_this;
gint i;
- g_assert (settings->priv->backend == backend);
+ /* We used to assert here:
+ *
+ * settings->priv->backend == backend
+ *
+ * but it could be the case that a notification is queued for delivery
+ * while someone calls g_settings_delay() (which changes the backend).
+ *
+ * Since the delay backend would just pass that straight through
+ * anyway, it doesn't make sense to try to detect this case.
+ * Therefore, we just accept it.
+ */
for (i = 0; key[i] == settings->priv->path[i]; i++);