Codebase list gnome-shell-extension-appindicator / 99b9776
test tool: Allow the gjs-based tool to hide for some seconds The PyKDE4 based one can do this basically since forever, but PyKDE4 is not installed on my current machine, which at the time of writing lacks working internet access. Jonas Kümmerlin 8 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
107107 })
108108 menu.append(item);
109109
110 item = new Gtk.SeparatorMenuItem();
111 menu.append(item);
112
113 item = Gtk.MenuItem.new_with_label("Hide for some time");
114 item.connect('activate', function() {
115 indicator.set_status(AppIndicator.IndicatorStatus.PASSIVE);
116 GLib.timeout_add(0, 5000, function() {
117 indicator.set_status(AppIndicator.IndicatorStatus.ACTIVE);
118 return false;
119 });
120 });
121 menu.append(item);
122
110123 menu.show_all();
111124
112125 var indicator = AppIndicator.Indicator.new("Hello", "indicator-test", AppIndicator.IndicatorCategory.APPLICATION_STATUS);