Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

        def load_icon(icon_name, size):
    icontheme = gtk.icon_theme_get_default()

    if not icontheme.has_icon(icon_name):
        icon_name = 'gtk-missing-image'

    return icontheme.load_icon(icon_name, size, gtk.ICON_LOOKUP_USE_BUILTIN)
        


src/e/t/etk.docking-0.2/lib/etk/docking/compactbutton.py   etk.docking(Download)
import gtk.gdk as gdk
 
from .util import load_icon
 
 
    def _refresh_icons(self):
        self._icon_normal = load_icon(self._icon_name_normal, self._size)
 
        if self._icon_name_prelight == self._icon_name_normal:
            self._icon_prelight = self._icon_normal
        else:
            self._icon_prelight = load_icon(self._icon_name_prelight, self._size)
            self._icon_active = self._icon_prelight
        else:
            self._icon_active = load_icon(self._icon_name_active, self._size)
 
    ############################################################################