diff --git a/src/extension.js b/src/extension.js index ebb98df..dd525d0 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1249,7 +1249,7 @@ weather-storm.png = weather-storm-symbolic.svg break; case WeatherPressureUnits.hPa: - pressure = pressure.toFixed(this._decimal_places);; + pressure = pressure.toFixed(this._decimal_places); pressure_unit = "hPa"; break; @@ -1448,7 +1448,7 @@ weather-storm.png = weather-storm-symbolic.svg if (this._connected) this.parseWeatherCurrent(); else - this.rebuildCurrentWeatherUi() + this.rebuildCurrentWeatherUi(); return true; })); }, @@ -1580,7 +1580,7 @@ weather-storm.png = weather-storm-symbolic.svg if (this._connected) this.parseWeatherForecast(); else - this.rebuildFutureWeatherUi() + this.rebuildFutureWeatherUi(); return true; })); }, diff --git a/src/prefs.js b/src/prefs.js index 0d51665..fc6cdd0 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -112,7 +112,7 @@ const WeatherPrefsWidget = new GObject.Class({ this.treeview.set_model(this.liststore); - let column = new Gtk.TreeViewColumn() + let column = new Gtk.TreeViewColumn(); this.treeview.append_column(column); let renderer = new Gtk.CellRendererText(); @@ -304,7 +304,7 @@ const WeatherPrefsWidget = new GObject.Class({ let entry = new Gtk.Entry(); let completion = new Gtk.EntryCompletion(); entry.set_completion(completion); - let completionModel = new Gtk.ListStore; + let completionModel = new Gtk.ListStore(); completionModel.set_column_types([GObject.TYPE_STRING]); completion.set_model(completionModel); completion.set_text_column(0);