1Gnome2::IconTheme(3) User Contributed Perl Documentation Gnome2::IconTheme(3)
2
3
4
6 Gnome2::IconTheme - wrapper for GnomeIconTheme
7
9 Glib::Object
10 +----Gnome2::IconTheme
11
13 icontheme = Gnome2::IconTheme->new
14 boolean = $theme->get_allow_svg
15 $theme->set_allow_svg ($allow_svg)
16 • $allow_svg (boolean)
17
18 $theme->append_search_path ($path)
19 • $path (string)
20
21 $theme->set_custom_theme ($theme_name)
22 • $theme_name (string)
23
24 string = $theme->get_example_icon_name
25 boolean = $theme->has_icon ($icon_name)
26 • $icon_name (string)
27
28 list = $theme->list_icons ($context=undef)
29 • $context (string)
30
31 Returns a list of icons.
32
33 list = $icon_theme->lookup ($thumbnail_factory, $file_uri, $custom_icon,
34 $file_info, $mime_type, $flags)
35 • $thumbnail_factory (Gnome2::ThumbnailFactory or undef)
36
37 • $file_uri (string)
38
39 • $custom_icon (scalar)
40
41 • $file_info (Gnome2::VFS::FileInfo)
42
43 • $mime_type (string)
44
45 • $flags (Gnome2::IconLookupFlags)
46
47 Returns the icon name and a GnomeIconLookupFlags.
48
49 list = $theme->lookup_icon ($icon_name, $size)
50 • $icon_name (string)
51
52 • $size (integer)
53
54 Returns the filename, the icon data and the base size.
55
56 list = $icon_theme->lookup_sync ($thumbnail_factory, $file_uri,
57 $custom_icon, $flags)
58 • $thumbnail_factory (Gnome2::ThumbnailFactory or undef)
59
60 • $file_uri (string)
61
62 • $custom_icon (scalar)
63
64 • $flags (Gnome2::IconLookupFlags)
65
66 Returns the icon name and a GnomeIconLookupFlags.
67
68 $theme->prepend_search_path ($path)
69 • $path (string)
70
71 boolean = $theme->rescan_if_needed
72 list = $theme->get_search_path
73 Returns a list of paths.
74
75 $theme->set_search_path (...)
76 • ... (list) of paths
77
79 changed (Gnome2::IconTheme)
80
82 flags Gnome2::IconLookupFlags
83 • 'none' / 'GNOME_ICON_LOOKUP_FLAGS_NONE'
84
85 • 'embedding-text' / 'GNOME_ICON_LOOKUP_FLAGS_EMBEDDING_TEXT'
86
87 • 'show-small-images-as-themselves' /
88 'GNOME_ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES'
89
90 • 'allow-svg-as-themselves' /
91 'GNOME_ICON_LOOKUP_FLAGS_ALLOW_SVG_AS_THEMSELVES'
92
94 Gnome2, Glib::Object
95
97 Copyright (C) 2003-2004 by the gtk2-perl team.
98
99 This software is licensed under the LGPL. See Gnome2 for a full
100 notice.
101
102
103
104perl v5.32.1 2021-01-27 Gnome2::IconTheme(3)