Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel: use new a11y settings key #395

Merged
merged 4 commits into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Views/Dock.vala
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ public class PantheonShell.Dock : Gtk.Box {
var indicators_box = new Gtk.Box (VERTICAL, 6);
indicators_box.append (indicators_header);

var a11y_schema = SettingsSchemaSource.get_default ().lookup ("io.elementary.desktop.wingpanel.a11y", true);
if (a11y_schema != null && a11y_schema.has_key ("show-indicator")) {
var quicksettings_schema = SettingsSchemaSource.get_default ().lookup ("io.elementary.desktop.quick-settings", true);
if (quicksettings_schema != null && quicksettings_schema.has_key ("show-a11y")) {
var a11y_check = new Gtk.CheckButton.with_label (_("Accessibility"));

indicators_box.append (a11y_check);

var a11y_settings = new Settings ("io.elementary.desktop.wingpanel.a11y");
a11y_settings.bind ("show-indicator", a11y_check, "active", DEFAULT);
var a11y_settings = new Settings ("io.elementary.desktop.quick-settings");
a11y_settings.bind ("show-a11y", a11y_check, "active", DEFAULT);
}

var keyboard_schema = SettingsSchemaSource.get_default ().lookup ("io.elementary.wingpanel.keyboard", true);
Expand Down
Loading