Skip to content

Commit

Permalink
fix: check if gtk is >=4.14
Browse files Browse the repository at this point in the history
adw requires >=4.13 so let's not break it
  • Loading branch information
GeopJr committed May 24, 2024
1 parent 286d6e0 commit d443da8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/collision/window.cr
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ module Collision

feedback_result = Collision::Feedback.title(result)
@verifyTextView.tooltip_text = feedback_result
@verifyTextView.announce(feedback_result, Gtk::AccessibleAnnouncementPriority::High)
{% 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
Expand Down Expand Up @@ -170,7 +172,9 @@ module Collision
@compareBtn.add_css_class(classes[:add])
@compareBtn.remove_css_class(classes[:remove])
@compareBtnImage.tooltip_text = title
@compareBtn.announce(title, Gtk::AccessibleAnnouncementPriority::High)
{% 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
Expand Down

0 comments on commit d443da8

Please sign in to comment.