Skip to content

Instantly share code, notes, and snippets.

@gaveen
Created December 9, 2011 04:51
Show Gist options
  • Save gaveen/1450230 to your computer and use it in GitHub Desktop.
Save gaveen/1450230 to your computer and use it in GitHub Desktop.
GNOME Shell extention - ConnectionManager - Set Icon
// Trying to set icon
let icon = new St.Icon({ icon_name: 'emblem-cm-symbolic',
icon_type: St.IconType.SYMBOLIC,
icon_size: 16 });
this.actor.get_children().forEach(function(c) { c.destroy() });
this.actor.add_actor(icon);
// Place the 'emblem-cm-symbolic.svg' in the same directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment