---
name: "Gtk2::IconFactory"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::IconFactory"
---

# Gtk2::IconFactory(3pm)

wrapper for GtkIconFactory

## NAME

Gtk2::IconFactory - wrapper for GtkIconFactory

## HIERARCHY

```
  Glib::Object
  +----Gtk2::IconFactory
```

## INTERFACES

```
  Gtk2::Buildable
```

## METHODS

### iconfactory = Gtk2::IconFactory-\>new

### $factory-\>add ($stock\_id, $icon\_set)

- •

  `$stock_id` (string)

- •

  `$icon_set` (Gtk2::IconSet)

### $factory-\>add\_default

### iconset = $factory-\>lookup ($stock\_id)

- •

  `$stock_id` (string)

### iconset = Gtk2::IconFactory-\>lookup\_default ($stock\_id)

- •

  `$stock_id` (string)

### $factory-\>remove\_default

## 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.
