Codebase list gnome-shell-extension-appindicator / 2f76a27
testTool: Print the icon to be used on new-icon signal Marco Trevisan (TreviƱo) 3 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
210210 print(`Signal \"new-attention-icon\" emitted.`);
211211 });
212212 indicator.connect("new-icon", (indicator) => {
213 print(`Signal \"new-icon\" emitted.`);
213 let icon = "<none>";
214 if (indicator.get_status() == AppIndicator.IndicatorStatus.ATTENTION)
215 icon = indicator.get_attention_icon();
216 else if (indicator.get_status() == AppIndicator.IndicatorStatus.ACTIVE)
217 icon = indicator.get_icon();
218
219 print(`Signal "new-icon" emitted. Icon: ${icon}`);
214220 });
215221 indicator.connect("new-icon-theme-path", (indicator, path) => {
216222 print(`Signal \"new-icon-theme-path\" emitted. Path: ${path}`);