class Gtk::StyleContext
Public Class Methods
Source
# File lib/gtk3/style-context.rb, line 30 def add_provider_for_screen(screen, provider, priority=nil) priority = resolve_priority(priority) add_provider_for_screen_raw(screen, provider, priority) end
Also aliased as: add_provider_for_screen_raw
Source
# File lib/gtk3/style-context.rb, line 36 def reset_widgets(screen=nil) reset_widgets_raw(screen || Gdk::Screen.default) end
Also aliased as: reset_widgets_raw
Source
# File lib/gtk3/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
Public Instance Methods
Source
# File lib/gtk3/style-context.rb, line 42 def add_provider(provider, priority=nil) priority = self.class.resolve_priority(priority) add_provider_raw(provider, priority) end
Also aliased as: add_provider_raw