desktop: fix installer extension

We were using the wrong api so it didn't work.
This commit is contained in:
Ray Strode 2011-03-29 01:47:04 -04:00 committed by Matthias Clasen
parent eda88e846a
commit 907f463ac0

View File

@ -60,7 +60,7 @@ const Util = imports.misc.util;
function main() { function main() {
let app = Shell.AppSystem.get_default().get_app('anaconda.desktop'); let app = Shell.AppSystem.get_default().get_app('anaconda.desktop');
let item = new PopupMenu.PopupMenuItem(app.get_name()); let item = new PopupMenu.PopupMenuItem(app.get_name());
item.connect('activate', function() { app.launch(); }); item.connect('activate', function() { app.activate(-1); });
Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1); Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1);
} }