Skip to content

Commit

Permalink
Start new process from 'more...' menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainwoodman committed Jun 27, 2009
1 parent 9dc0cc6 commit f0a61e1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion applet/launcher.vala
Expand Up @@ -32,7 +32,21 @@ public class Launcher : Gnomenu.MenuBar {
item.visible = true;
menu.append(item);
}
menu.show_all();
Gtk.MenuItem more = new Gtk.MenuItem.with_label("more...");
more.visible = true;
menu.append(more);
more.submenu = new Gtk.Menu();
foreach(var app in Gnomenu.Application.applications) {
if(app.wnck_applications != null) continue;
ProxyItem item = new ProxyItem();
item.application = app;
item.visible = true;
item.activate += (obj) => {
Gdk.spawn_command_line_on_screen(get_screen(),
obj.application.exec_path);
};
more.submenu.append(item);
}
};
}

Expand Down

0 comments on commit f0a61e1

Please sign in to comment.