---
name: "Gnome2::IconTheme"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::IconTheme"
---

# Gnome2::IconTheme(3pm)

wrapper for GnomeIconTheme

## NAME

Gnome2::IconTheme - 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'

## SEE ALSO

Gnome2, Glib::Object

## COPYRIGHT

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

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