Using Clutter

Create a clutter actor from a themed icon

Use the load_icon_name function of St.TextureCache. It takes the name and size of the icon to load.

const St = imports.gi.St;

let textureCache = St.TextureCache.get_default();

let newActor = textureCache.load_icon_name('user-available', 16);

Projects/GnomeShell/Extensions/FAQ/UsingClutter (last edited 2013-11-22 16:59:49 by WilliamJonMcCann)