[gnome-shell] dateMenu: Adjust to GWeather IAPI change
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Adjust to GWeather IAPI change
- Date: Tue, 12 Sep 2017 15:34:13 +0000 (UTC)
commit 56f4ce37cd52817a5fcba360dc5eec23d81656f0
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 8 12:13:48 2017 +0200
dateMenu: Adjust to GWeather IAPI change
It's not exactly clear what changed - gobject-introspection, gjs - but
the newly added gweather_condition_to_string_full() API no longer works
like it used to. The replacement code does look more idiomatic anyway,
so just fix the code without investigating the reason of the breakage.
https://bugzilla.gnome.org/show_bug.cgi?id=787423
js/ui/dateMenu.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 18f2f0e..0054f2d 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -237,12 +237,12 @@ var WeatherSection = new Lang.Class({
let options = capitalize ? GWeather.FormatOptions.SENTENCE_CAPITALIZATION
: GWeather.FormatOptions.NO_CAPITALIZATION;
- let [ok, phenom, qualifier] = info.get_value_conditions();
+ let [ok, phenomenon, qualifier] = info.get_value_conditions();
if (ok)
- return GWeather.conditions_to_string_full(phenom, qualifier, options);
+ return new GWeather.Conditions({ phenomenon, qualifier}).to_string_full(options);
let [, sky] = info.get_value_sky();
- return GWeather.sky_to_string_full(sky, options);
+ return GWeather.Sky.to_string_full(sky, options);
},
_sameSummary: function(info1, info2) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]