testTool: Print the icon to be used on new-icon signal
Marco Trevisan (TreviƱo)
3 years ago
210 | 210 | print(`Signal \"new-attention-icon\" emitted.`); |
211 | 211 | }); |
212 | 212 | 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}`); | |
214 | 220 | }); |
215 | 221 | indicator.connect("new-icon-theme-path", (indicator, path) => { |
216 | 222 | print(`Signal \"new-icon-theme-path\" emitted. Path: ${path}`); |