Created
December 9, 2011 04:51
-
-
Save gaveen/1450230 to your computer and use it in GitHub Desktop.
GNOME Shell extention - ConnectionManager - Set Icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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