Minor change

yahoo_weather
Neroth 13 years ago
parent ecdd6e3b7a
commit a011b22d5a
  1. 6
      src/extension.js

@ -126,9 +126,7 @@ WeatherMenuButton.prototype = {
// Current weather // Current weather
this._currentWeather = new St.Bin({ style_class: 'current' }); this._currentWeather = new St.Bin({ style_class: 'current' });
// Future weather // Future weather
this._futureWeather = new St.Bin({ style_class: 'forecast' /*, x_align: St.Align.START*/}); this._futureWeather = new St.Bin({ style_class: 'forecast'});
// Setting button
this._settingWeather = new St.Bin({ style_class: 'setting' });
// Putting the popup item together // Putting the popup item together
this.menu.addActor(this._currentWeather); this.menu.addActor(this._currentWeather);
@ -169,7 +167,7 @@ WeatherMenuButton.prototype = {
var that = this; var that = this;
var schema = WEATHER_SETTINGS_SCHEMA; var schema = WEATHER_SETTINGS_SCHEMA;
if (Gio.Settings.list_schemas().indexOf(schema) == -1) if (Gio.Settings.list_schemas().indexOf(schema) == -1)
throw _("Schema \"%s\" not found.").format(schema); throw _("Schema \"%s\" not found.").replace("%s",schema);
this._settings = new Gio.Settings({ schema: schema }); this._settings = new Gio.Settings({ schema: schema });
this._settings.connect("changed",function(){that.refreshWeather(false);}); this._settings.connect("changed",function(){that.refreshWeather(false);});
}, },

Loading…
Cancel
Save