Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Comment and clean up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
aral committed Sep 10, 2021
1 parent 824156b commit e2589b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Main.vala
Expand Up @@ -219,9 +219,9 @@ namespace Gala.Plugins.Catts
}

// Accessibility: reads as “window, task switcher, N items, panel.”
unowned var accessible_object = wrapper.get_accessible();
var number_of_children = container.get_n_children();
accessible_object.set_name(@"Task switcher: $number_of_children items");
unowned var accessibility_object = wrapper.get_accessible();
accessibility_object.set_name(@"Task switcher: $number_of_children items");

var display = wm.get_display();
indicator.set_easing_duration(200);
Expand Down Expand Up @@ -363,6 +363,7 @@ namespace Gala.Plugins.Catts
var current_window = cur_icon.window;
var current_caption = "n/a";
if (current_window != null) {
// Accessibility: reads the title of the selected item.
current_caption = current_window.get_title();
unowned var accessibility_object = wrapper.get_accessible();
accessibility_object.set_name(@"Item $current_caption selected in");
Expand Down

0 comments on commit e2589b8

Please sign in to comment.