Skip to content

Commit

Permalink
Expose audible-bell setting in Settings Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Paul Wootten authored and Jeremy Paul Wootten committed Oct 21, 2023
1 parent c9a60a3 commit fef31c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Widgets/SettingsPopover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public sealed class Terminal.SettingsPopover : Gtk.Popover {
active = Application.settings.get_boolean ("natural-copy-paste")
};

var audible_bell_button = new Granite.SwitchModelButton (_("Audible Bell")) {
description = _("Send an event alert for invalid input or multiple possible completions (subject to system sound settings)."),
active = Application.settings.get_boolean ("audible-bell")
};

var box = new Gtk.Box (VERTICAL, 6) {
margin_bottom = 6,
margin_top = 12,
Expand All @@ -123,6 +128,7 @@ public sealed class Terminal.SettingsPopover : Gtk.Popover {
box.add (theme_box);
box.add (new Gtk.Separator (HORIZONTAL));
box.add (natural_copy_paste_button);
box.add (audible_bell_button);
child = box;

custom_button.clicked.connect (() => {
Expand Down

0 comments on commit fef31c0

Please sign in to comment.