Method: Gtk::StyleContext.resolve_priority
- Defined in:
- lib/gtk4/style-context.rb
.resolve_priority(priority) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/gtk4/style-context.rb', line 20 def resolve_priority(priority) case priority when Symbol, String StyleProvider.const_get("PRIORITY_#{priority.to_s.upcase}") else priority || StyleProvider::PRIORITY_APPLICATION end end |