mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
GSettings: remove more asserts
Same logic as the last commit on this topic, applied to the other functions too.
This commit is contained in:
parent
edaf99be86
commit
23818d1e61
@ -345,8 +345,6 @@ settings_backend_path_changed (GObject *target,
|
||||
GSettings *settings = G_SETTINGS (target);
|
||||
gboolean ignore_this;
|
||||
|
||||
g_assert (settings->priv->backend == backend);
|
||||
|
||||
if (g_str_has_prefix (settings->priv->path, path))
|
||||
g_signal_emit (settings, g_settings_signals[SIGNAL_CHANGE_EVENT],
|
||||
0, NULL, 0, &ignore_this);
|
||||
@ -363,8 +361,6 @@ settings_backend_keys_changed (GObject *target,
|
||||
gboolean ignore_this;
|
||||
gint i;
|
||||
|
||||
g_assert (settings->priv->backend == backend);
|
||||
|
||||
for (i = 0; settings->priv->path[i] &&
|
||||
settings->priv->path[i] == path[i]; i++);
|
||||
|
||||
@ -405,8 +401,6 @@ settings_backend_writable_changed (GObject *target,
|
||||
gboolean ignore_this;
|
||||
gint i;
|
||||
|
||||
g_assert (settings->priv->backend == backend);
|
||||
|
||||
for (i = 0; key[i] == settings->priv->path[i]; i++);
|
||||
|
||||
if (settings->priv->path[i] == '\0' &&
|
||||
@ -423,8 +417,6 @@ settings_backend_path_writable_changed (GObject *target,
|
||||
GSettings *settings = G_SETTINGS (target);
|
||||
gboolean ignore_this;
|
||||
|
||||
g_assert (settings->priv->backend == backend);
|
||||
|
||||
if (g_str_has_prefix (settings->priv->path, path))
|
||||
g_signal_emit (settings, g_settings_signals[SIGNAL_WRITABLE_CHANGE_EVENT],
|
||||
0, (GQuark) 0, &ignore_this);
|
||||
|
Loading…
Reference in New Issue
Block a user