Inline spawn, add L10n for string.

yahoo_weather
simon04 14 years ago
parent 9c8c0056c3
commit 445b64833b
  1. 10
      src/extension.js

@ -65,10 +65,6 @@ const WeatherPosition = {
RIGHT: 1 RIGHT: 1
} }
function Open_Perference() {
Util.spawn(["weather-extension-configurator"]);
}
function WeatherMenuButton() { function WeatherMenuButton() {
this._init(); this._init();
} }
@ -172,8 +168,10 @@ WeatherMenuButton.prototype = {
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
let item = new PopupMenu.PopupMenuItem("Preferences..."); let item = new PopupMenu.PopupMenuItem(_("Preferences..."));
item.connect('activate', Open_Perference); item.connect('activate', function() {
Util.spawn(["weather-extension-configurator"]);
});
this.menu.addMenuItem(item); this.menu.addMenuItem(item);
// Items // Items

Loading…
Cancel
Save