Gnome2::IconTheme(3)
β¨ Gnome2::IconTheme β bestie's guide to icon theming β¨
okay so this is Gnome2::IconTheme, the Perl wrapper for GnomeIconTheme π it's a User Contributed Perl Documentation page, and yes you're in the right place, pull up a chair π«Ά
It's giving "I wrap GnomeIconTheme and I do it gorgeously." No cap. πΈ
π¦ HIERARCHY
the family tree, and it's a cute little one:
Glib::Object
+----Gnome2::IconTheme
so it's a Glib::Object girlie at heart π everything Glib::Object can do? inherited. periodt.
π METHODS
π making one
icontheme = Gnome2::IconTheme->newβ boom, new icon theme object. main character entrance β¨
π svg settings
boolean = $theme->get_allow_svgβ asks the theme "do you allow SVG or nah?" returns a boolean π$theme->set_allow_svg ($allow_svg)β sets that SVG allowance.$allow_svg(boolean)
π§ search path stuff
$theme->append_search_path ($path)β tacks a path onto the end of the search path.$path(string)
$theme->prepend_search_path ($path)β shoves a path onto the front of the search path. front of the line, obviously π$path(string)
list = $theme->get_search_pathβ hands you back a list of paths. literally. a whole list π$theme->set_search_path (...)β sets the whole search path in one go....(list) of paths
π custom themes & names
$theme->set_custom_theme ($theme_name)β gives the theme a custom name.$theme_name(string)
string = $theme->get_example_icon_nameβ returns an example icon name, like a lil sample platter π
π₯ checking & listing icons
boolean = $theme->has_icon ($icon_name)β does the theme have this icon? true/false, vibe check complete β$icon_name(string)
list = $theme->list_icons ($context=undef)β returns a list of icons.$context(string)
boolean = $theme->rescan_if_neededβ rescans only if it needs to. efficient queen πlist = $theme->lookup_icon ($icon_name, $size)β returns the filename, the icon data and the base size.$icon_name(string)$size(integer)
π the lookup squad
list = $icon_theme->lookup ($thumbnail_factory, $file_uri, $custom_icon, $file_info, $mime_type, $flags)β returns the icon name and a GnomeIconLookupFlags.$thumbnail_factory(Gnome2::ThumbnailFactory or undef)$file_uri(string)$custom_icon(scalar)$file_info(Gnome2::VFS::FileInfo)$mime_type(string)$flags(Gnome2::IconLookupFlags)
list = $icon_theme->lookup_sync ($thumbnail_factory, $file_uri, $custom_icon, $flags)β the synchronous version, returns the icon name and a GnomeIconLookupFlags.$thumbnail_factory(Gnome2::ThumbnailFactory or undef)$file_uri(string)$custom_icon(scalar)$flags(Gnome2::IconLookupFlags)
π SIGNALS
changedβ emitted on a Gnome2::IconTheme. something changed bestie, and you're gonna hear about it π
π§ ENUMS AND FLAGS
flags Gnome2::IconLookupFlags
the flag buffet, take what you need:
'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'
π«Ά SEE ALSO
Gnome2Glib::Object
π COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
and that's the whole page bestie!! π this absolute icon of a doc came to you courtesy of perl v5.42.0, dated 2025-07-25, filed under Gnome2::IconTheme(3) π go forth and theme those icons, you ate π¦β¨
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms