Gtk2::IconTheme(3) User Contributed Perl Documentation Gtk2::IconTheme(3) NAME Gtk2::IconTheme - wrapper for GtkIconTheme HIERARCHY Glib::Object +----Gtk2::IconTheme METHODS icontheme = Gtk2::IconTheme->new Gtk2::IconTheme->add_builtin_icon ($icon_name, $size, $pixbuf) o $icon_name (string) o $size (integer) o $pixbuf (Gtk2::Gdk::Pixbuf) $icon_theme->append_search_path ($path) o $path (localized file name) iconinfo or undef = $icon_theme->choose_icon ($icon_names, $size, $flags) o $icon_names (scalar) o $size (integer) o $flags (Gtk2::IconLookupFlags) Since: gtk+ 2.12 $icon_theme->set_custom_theme ($theme_name) o $theme_name (string or undef) Cannot be used on a "Gtk2::IconTheme" returned by Gtk2::IconTheme->get_default or Gtk2::IconTheme->get_for_screen. icontheme = Gtk2::IconTheme->get_default string or undef = $icon_theme->get_example_icon_name icontheme = Gtk2::IconTheme->get_for_screen ($screen) o $screen (Gtk2::Gdk::Screen) boolean = $icon_theme->has_icon ($icon_name) o $icon_name (string) list = $icon_theme->get_icon_sizes ($icon_name) o $icon_name (string) Since: gtk+ 2.6 list = $icon_theme->list_contexts Since: gtk+ 2.12 list = $icon_theme->list_icons ($context) o $context (string or undef) pixbuf or undef = $icon_theme->load_icon ($icon_name, $size, $flags) o $icon_name (string) o $size (integer) o $flags (Gtk2::IconLookupFlags) May croak with a Glib::Error in $@ on failure. iconinfo or undef = $icon_theme->lookup_icon ($icon_name, $size, $flags) o $icon_name (string) o $size (integer) o $flags (Gtk2::IconLookupFlags) $icon_theme->prepend_search_path ($path) o $path (localized file name) boolean = $icon_theme->rescan_if_needed $icon_theme->set_screen ($screen) o $screen (Gtk2::Gdk::Screen) list = $icon_theme->get_search_path $icon_theme->set_search_path (...) o ... (list) SIGNALS changed (Gtk2::IconTheme) ENUMS AND FLAGS flags Gtk2::IconLookupFlags o 'no-svg' / 'GTK_ICON_LOOKUP_NO_SVG' o 'force-svg' / 'GTK_ICON_LOOKUP_FORCE_SVG' o 'use-builtin' / 'GTK_ICON_LOOKUP_USE_BUILTIN' o 'generic-fallback' / 'GTK_ICON_LOOKUP_GENERIC_FALLBACK' o 'force-size' / 'GTK_ICON_LOOKUP_FORCE_SIZE' enum Gtk2::IconThemeError o 'not-found' / 'GTK_ICON_THEME_NOT_FOUND' o 'failed' / 'GTK_ICON_THEME_FAILED' SEE ALSO Gtk2, Glib::Object COPYRIGHT Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.38.0 2023-07-25 Gtk2::IconTheme(3)