Skip to content

Commit

Permalink
Panel: use new a11y settings key
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 6, 2024
1 parent bf79776 commit e70f403
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit e70f403

Please sign in to comment.