From eeacd4ba5347018701c4db0e6c4a6ec4374e723e Mon Sep 17 00:00:00 2001 From: tintou Date: Thu, 4 May 2017 20:02:56 +0200 Subject: [PATCH 1/2] Use built-in symbolic icon names (#25) Use built-in translations --- src/MainWindow.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index b902dbf..806588b 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -36,6 +36,7 @@ public class MainWindow : Gtk.Dialog { icon_name: "com.github.danrabbit.nimbus", resizable: false, skip_taskbar_hint: true, + skip_pager_hint: true, title: _("Nimbus"), type_hint: Gdk.WindowTypeHint.UTILITY, height_request: 272, @@ -50,7 +51,7 @@ public class MainWindow : Gtk.Dialog { weather_info = new GWeather.Info (location, GWeather.ForecastType.LIST); - var weather_icon = new Gtk.Image.from_icon_name ("%s-symbolic".printf (weather_info.get_icon_name ()), Gtk.IconSize.LARGE_TOOLBAR); + var weather_icon = new Gtk.Image.from_icon_name (weather_info.get_symbolic_icon_name (), Gtk.IconSize.LARGE_TOOLBAR); var weather_label = new Gtk.Label (weather_info.get_sky ()); weather_label.halign = Gtk.Align.START; @@ -119,10 +120,10 @@ public class MainWindow : Gtk.Dialog { return; } - location_label.label = location.get_city_name (); + location_label.label = dgettext("libgweather-locations", location.get_city_name ()); - weather_icon.icon_name = "%s-symbolic".printf (weather_info.get_icon_name ()); - weather_label.label = weather_info.get_sky (); + weather_icon.icon_name = weather_info.get_symbolic_icon_name (); + weather_label.label = dgettext("libgweather", weather_info.get_sky ()); double temp; weather_info.get_value_temp (GWeather.TemperatureUnit.DEFAULT, out temp); From 026b0a55fae745099c5dffdf41d1d6961e38b4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Thu, 4 May 2017 16:19:09 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9aca0f..3191047 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,16 @@ See the current temperature and weather conditions for your location with this m ## Building, Testing, and Installation -You'll need the following dependencies: +You'll need the following dependencies to build: * libgeoclue-2-dev * libgtk-3-dev * libgweather-3-dev * meson * valac +You'll need the following dependencies to run: +* geoclue-2.0 + Run `meson build` to configure the build environment and then change to the build directory and run `ninja` to build meson build