From f3b2ad4c3b06957f09198096130ac5ac1c04a333 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Wed, 5 Mar 2014 07:32:08 +0100 Subject: [PATCH] Add missing semicolon and remove one unneded semicolon. --- src/extension.js | 6 +++--- src/prefs.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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);