Gnome2::IconTheme(3) wrapper for GnomeIconTheme

HIERARCHY

  Glib::Object
  +----Gnome2::IconTheme

METHODS

icontheme = Gnome2::IconTheme->new

boolean = $theme->get_allow_svg

$theme->set_allow_svg ($allow_svg)

  • $allow_svg (boolean)

$theme->append_search_path ($path)

  • $path (string)

$theme->set_custom_theme ($theme_name)

  • $theme_name (string)

string = $theme->get_example_icon_name

boolean = $theme->has_icon ($icon_name)

  • $icon_name (string)

list = $theme->list_icons ($context=undef)

  • $context (string)

Returns a list of icons.

list = $icon_theme->lookup ($thumbnail_factory, $file_uri, $custom_icon, $file_info, $mime_type, $flags)

  • $thumbnail_factory (Gnome2::ThumbnailFactory or undef)
  • $file_uri (string)
  • $custom_icon (scalar)
  • $file_info (Gnome2::VFS::FileInfo)
  • $mime_type (string)
  • $flags (Gnome2::IconLookupFlags)

Returns the icon name and a GnomeIconLookupFlags.

list = $theme->lookup_icon ($icon_name, $size)

  • $icon_name (string)
  • $size (integer)

Returns the filename, the icon data and the base size.

list = $icon_theme->lookup_sync ($thumbnail_factory, $file_uri, $custom_icon, $flags)

  • $thumbnail_factory (Gnome2::ThumbnailFactory or undef)
  • $file_uri (string)
  • $custom_icon (scalar)
  • $flags (Gnome2::IconLookupFlags)

Returns the icon name and a GnomeIconLookupFlags.

$theme->prepend_search_path ($path)

  • $path (string)

boolean = $theme->rescan_if_needed

list = $theme->get_search_path

Returns a list of paths.

$theme->set_search_path (...)

  • ... (list) of paths

SIGNALS

changed (Gnome2::IconTheme)

ENUMS AND FLAGS

flags Gnome2::IconLookupFlags

  • 'none' / 'GNOME_ICON_LOOKUP_FLAGS_NONE'
  • 'embedding-text' / 'GNOME_ICON_LOOKUP_FLAGS_EMBEDDING_TEXT'
  • 'show-small-images-as-themselves' / 'GNOME_ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES'
  • 'allow-svg-as-themselves' / 'GNOME_ICON_LOOKUP_FLAGS_ALLOW_SVG_AS_THEMSELVES'

COPYRIGHT

Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL. See Gnome2 for a full notice.