gtk: remove notes about accessibility

This commit is contained in:
Jeffrey C. Ollie
2025-07-17 22:32:48 -05:00
parent c015a6248d
commit 2d76c105bf

View File

@ -50,7 +50,6 @@ pub fn handleProgressReport(self: *ProgressBar, value: terminal.osc.Command.Prog
// Set the progress bar to a fixed value if one was provided, otherwise pulse. // Set the progress bar to a fixed value if one was provided, otherwise pulse.
// Remove the `error` CSS class so that the progress bar shows as normal. // Remove the `error` CSS class so that the progress bar shows as normal.
// TODO: how to deal with accessibility?
.set => { .set => {
progress_bar.as(gtk.Widget).removeCssClass("error"); progress_bar.as(gtk.Widget).removeCssClass("error");
if (value.progress) |progress| { if (value.progress) |progress| {
@ -62,7 +61,6 @@ pub fn handleProgressReport(self: *ProgressBar, value: terminal.osc.Command.Prog
// Set the progress bar to a fixed value if one was provided, otherwise pulse. // Set the progress bar to a fixed value if one was provided, otherwise pulse.
// Set the `error` CSS class so that the progress bar shows as an error color. // Set the `error` CSS class so that the progress bar shows as an error color.
// TODO: how to deal with accessibility?
.@"error" => { .@"error" => {
progress_bar.as(gtk.Widget).addCssClass("error"); progress_bar.as(gtk.Widget).addCssClass("error");
if (value.progress) |progress| { if (value.progress) |progress| {
@ -74,7 +72,6 @@ pub fn handleProgressReport(self: *ProgressBar, value: terminal.osc.Command.Prog
// The state of progress is unknown, so pulse the progress bar to // The state of progress is unknown, so pulse the progress bar to
// indicate that things are still happening. // indicate that things are still happening.
// TODO: how to deal with accessibility?
.indeterminate => { .indeterminate => {
progress_bar.pulse(); progress_bar.pulse();
}, },
@ -83,7 +80,6 @@ pub fn handleProgressReport(self: *ProgressBar, value: terminal.osc.Command.Prog
// Don't pulse the progress bar as that would indicate that things were // Don't pulse the progress bar as that would indicate that things were
// happening. Otherwise this is mainly used to keep the progress bar on // happening. Otherwise this is mainly used to keep the progress bar on
// screen instead of timing out. // screen instead of timing out.
// TODO: how to deal with accessibility?
.pause => { .pause => {
if (value.progress) |progress| { if (value.progress) |progress| {
progress_bar.setFraction(computeFraction(progress)); progress_bar.setFraction(computeFraction(progress));