diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8e9f5e..d0c11ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,5 +45,3 @@ jobs: manifest-path: "data/dev.geopjr.Collision.json" cache-key: flatpak-builder-${{ github.sha }} arch: ${{ matrix.arch }} - repository-name: flathub-beta - repository-url: https://flathub.org/beta-repo/flathub-beta.flatpakrepo diff --git a/data/dev.geopjr.Collision.json b/data/dev.geopjr.Collision.json index 2d409d4..8c5bbf1 100644 --- a/data/dev.geopjr.Collision.json +++ b/data/dev.geopjr.Collision.json @@ -1,7 +1,7 @@ { "app-id": "dev.geopjr.Collision", "runtime": "org.gnome.Platform", - "runtime-version": "46beta", + "runtime-version": "46", "sdk": "org.gnome.Sdk", "command": "collision", "finish-args": [ diff --git a/src/collision/window.cr b/src/collision/window.cr index ff72255..c01b593 100644 --- a/src/collision/window.cr +++ b/src/collision/window.cr @@ -131,7 +131,12 @@ module Collision @verifyFeedback.icon_name = Collision::Feedback.icon(result) @verifyFeedback.add_css_class(classes[:add]) @verifyFeedback.remove_css_class(classes[:remove]) - @verifyTextView.tooltip_text = Collision::Feedback.title(result) + + feedback_result = Collision::Feedback.title(result) + @verifyTextView.tooltip_text = feedback_result + {% if compare_versions("#{Gtk::MAJOR_VERSION}.#{Gtk::MINOR_VERSION}.#{Gtk::MICRO_VERSION}", "4.14.0") >= 0 %} + @verifyTextView.announce(feedback_result, Gtk::AccessibleAnnouncementPriority::High) + {% end %} end # We want to only check the file contents @@ -167,6 +172,9 @@ module Collision @compareBtn.add_css_class(classes[:add]) @compareBtn.remove_css_class(classes[:remove]) @compareBtnImage.tooltip_text = title + {% if compare_versions("#{Gtk::MAJOR_VERSION}.#{Gtk::MINOR_VERSION}.#{Gtk::MICRO_VERSION}", "4.14.0") >= 0 %} + @compareBtn.announce(title, Gtk::AccessibleAnnouncementPriority::High) + {% end %} false end