universal-access: Adjust for magnifier schema changes
gsettings-desktop-schemas had two conflicting settings for enabling the magnifier: 'show-magnifier' in org.gnome.desktop.a11y.magnifier and 'screen-magnifier-enabled' in org.gnome.desktop.a11y.applications. The former has been removed in favor of the latter, so adjust to this change.
This commit is contained in:
parent
05f7a4b1f4
commit
d8f823a31c
1 changed files with 7 additions and 6 deletions
|
@ -45,7 +45,7 @@ struct _CcUaPanelPrivate
|
||||||
GSettings *kb_settings;
|
GSettings *kb_settings;
|
||||||
GSettings *mouse_settings;
|
GSettings *mouse_settings;
|
||||||
GSettings *font_settings;
|
GSettings *font_settings;
|
||||||
GSettings *magnifier_settings;
|
GSettings *application_settings;
|
||||||
|
|
||||||
GSList *notify_list;
|
GSList *notify_list;
|
||||||
};
|
};
|
||||||
|
@ -133,10 +133,10 @@ cc_ua_panel_dispose (GObject *object)
|
||||||
priv->font_settings = NULL;
|
priv->font_settings = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->magnifier_settings)
|
if (priv->application_settings)
|
||||||
{
|
{
|
||||||
g_object_unref (priv->magnifier_settings);
|
g_object_unref (priv->application_settings);
|
||||||
priv->magnifier_settings = NULL;
|
priv->application_settings = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (cc_ua_panel_parent_class)->dispose (object);
|
G_OBJECT_CLASS (cc_ua_panel_parent_class)->dispose (object);
|
||||||
|
@ -549,7 +549,8 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
|
||||||
WID (priv->builder, "seeing_enable_toggle_keys_checkbutton"), "active",
|
WID (priv->builder, "seeing_enable_toggle_keys_checkbutton"), "active",
|
||||||
G_SETTINGS_BIND_DEFAULT);
|
G_SETTINGS_BIND_DEFAULT);
|
||||||
|
|
||||||
settings_on_off_editor_new (priv, priv->magnifier_settings, "show-magnifier",
|
settings_on_off_editor_new (priv, priv->application_settings,
|
||||||
|
"screen-magnifier-enabled",
|
||||||
WID (priv->builder, "seeing_zoom_on_radiobutton"),
|
WID (priv->builder, "seeing_zoom_on_radiobutton"),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
@ -800,7 +801,7 @@ cc_ua_panel_init (CcUaPanel *self)
|
||||||
priv->kb_settings = g_settings_new ("org.gnome.desktop.a11y.keyboard");
|
priv->kb_settings = g_settings_new ("org.gnome.desktop.a11y.keyboard");
|
||||||
priv->mouse_settings = g_settings_new ("org.gnome.desktop.a11y.mouse");
|
priv->mouse_settings = g_settings_new ("org.gnome.desktop.a11y.mouse");
|
||||||
priv->font_settings = g_settings_new ("org.gnome.settings-daemon.plugins.xsettings");
|
priv->font_settings = g_settings_new ("org.gnome.settings-daemon.plugins.xsettings");
|
||||||
priv->magnifier_settings = g_settings_new ("org.gnome.desktop.a11y.magnifier");
|
priv->application_settings = g_settings_new ("org.gnome.desktop.a11y.applications");
|
||||||
|
|
||||||
cc_ua_panel_init_keyboard (self);
|
cc_ua_panel_init_keyboard (self);
|
||||||
cc_ua_panel_init_mouse (self);
|
cc_ua_panel_init_mouse (self);
|
||||||
|
|
Loading…
Add table
Reference in a new issue