Class: Gtk::IconTheme

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk3/deprecated.rb,
lib/gtk3/icon-theme.rb

Instance Method Summary collapse

Instance Method Details

#choose_icon(icon_names, size, flags = nil) ⇒ Object


20
21
22
23
24
# File 'lib/gtk3/icon-theme.rb', line 20

def choose_icon(icon_names, size, flags=nil)
  icon_names = [icon_names] unless icon_names.is_a?(Array)
  flags ||= 0
  choose_icon_raw(icon_names, size, flags)
end

#choose_icon_rawObject


19
# File 'lib/gtk3/icon-theme.rb', line 19

alias_method :choose_icon_raw, :choose_icon

#lookup_icon(icon, size, flags = nil) ⇒ Object


27
28
29
30
31
32
33
34
35
36
# File 'lib/gtk3/icon-theme.rb', line 27

def lookup_icon(icon, size, flags=nil)
  case icon
  when String, Symbol
    flags ||= :generic_fallback
    lookup_icon_raw(icon.to_s, size, flags)
  else
    flags ||= 0
    lookup_by_gicon(icon, size, flags)
  end
end

#lookup_icon_rawObject


26
# File 'lib/gtk3/icon-theme.rb', line 26

alias_method :lookup_icon_raw, :lookup_icon