View Single Post
  #2   (View Single Post)  
Old 16th March 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by JWJones View Post
2) How do you change the settings in gnome weather? I want my settings in Fahrenheit rather than Celsius.
Here's a really quick and dirty hack to get Fahrenheit weather. You will need to apply this diff to /usr/ports/x11/gnome/libgweather and rebuild libgweather.
# cd /usr/ports/x11/gnome/libgweather && patch -E </path/to/libgweather-fahrenheit.diff && make install-all

Code:
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/libgweather/Makefile,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile
--- Makefile	3 Feb 2014 13:00:29 -0000	1.56
+++ Makefile	16 Mar 2014 20:12:10 -0000
@@ -6,7 +6,7 @@ COMMENT=		weather information access lib
 
 GNOME_PROJECT=		libgweather
 GNOME_VERSION=		3.10.2
-REVISION=		0
+REVISION=		1
 
 SHARED_LIBS +=		gweather-3             2.0      # 2.0
 
Index: patches/patch-libgweather_weather_c
===================================================================
RCS file: /cvs/ports/x11/gnome/libgweather/patches/patch-libgweather_weather_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-libgweather_weather_c
--- patches/patch-libgweather_weather_c	26 Sep 2013 15:56:25 -0000	1.2
+++ patches/patch-libgweather_weather_c	16 Mar 2014 20:12:10 -0000
@@ -7,8 +7,8 @@ Subject: [PATCH] Add fallback in case _N
 
 https://bugzilla.gnome.org/show_bug.cgi?id=708561
 
---- libgweather/weather.c.orig	Thu Sep 19 11:17:26 2013
-+++ libgweather/weather.c	Thu Sep 26 17:54:42 2013
+--- libgweather/weather.c.orig	Sun Feb  2 11:38:57 2014
++++ libgweather/weather.c	Sun Mar 16 16:06:30 2014
 @@ -701,6 +701,15 @@ gweather_info_get_conditions (GWeatherInfo *info)
  static gboolean
  is_locale_metric (void)
@@ -40,3 +40,14 @@ https://bugzilla.gnome.org/show_bug.cgi?
  }
  
  static GWeatherTemperatureUnit
+@@ -720,8 +737,8 @@ temperature_unit_to_real (GWeatherTemperatureUnit unit
+ 
+     if (unit == GWEATHER_TEMP_UNIT_DEFAULT)
+ 	return is_locale_metric() ?
+-	    GWEATHER_TEMP_UNIT_CENTIGRADE :
+-	    GWEATHER_TEMP_UNIT_FAHRENHEIT;
++	    GWEATHER_TEMP_UNIT_FAHRENHEIT :
++	    GWEATHER_TEMP_UNIT_CENTIGRADE;
+ 
+     return unit;
+ }
No warrantee, on your own if it breaks, don't complain to ports@ about it, etc.

This stems from Gnome3 thinking that the United States is a metric country, when it is in reality an Imperial country. This may need more investigation.

EDIT: I also found a top bar weather extension: https://extensions.gnome.org/extension/613/weather/
All you have to do is click the slider on that page to "ON" and restart gnome-shell. It's very configurable and looks much nicer, IMO.


Quote:
Originally Posted by JWJones View Post
4) Edge scrolling and horizontal scrolling: in the touchpad settings, I have a setting for two-finger scrolling, but nothing for edge scrolling or horizontal scrolling. This is a simple matter in Xfce, but not Gnome? WTF?
Horizontal scrolling is automatic when two-finger scrolling is enabled. My touchpad doesn't have an edge scroller so I can't comment on that. I'm on a ThinkPad EDGE E420 here.

~Brian

Last edited by ibara; 16th March 2014 at 10:18 PM. Reason: Discovery of the gnome-shell weather extension.
Reply With Quote