gnome-clocks 3.24.0
[git/cygwin-packages/gnome-clocks.git] / 3.22.1-without-geoclue.patch
CommitLineData
55f822b5
YS
1GeoClue2 is not working yet. Users will have to enter their own location
2themselves.
3
4--- origsrc/gnome-clocks-3.22.1/Makefile.am 2016-10-08 05:34:32.000000000 -0500
5+++ src/gnome-clocks-3.22.1/Makefile.am 2017-03-17 12:10:34.973607700 -0500
55f822b5
YS
6@@ -114,7 +113,6 @@ VALA_SOURCES = \
7 src/timer.vala \
8 src/utils.vala \
9 src/widgets.vala \
10- src/geocoding.vala \
11 src/search-provider.vala \
12 src/main.vala
13
14--- origsrc/gnome-clocks-3.22.1/configure.ac 2016-10-10 01:36:23.000000000 -0500
15+++ src/gnome-clocks-3.22.1/configure.ac 2017-03-17 12:10:01.776782700 -0500
16@@ -56,7 +56,6 @@ PKG_CHECK_MODULES(CLOCKS, [
17 gweather-3.0 >= 3.13.91
18 gnome-desktop-3.0 >= 3.7.90
19 geocode-glib-1.0 >= 0.99.4
20- libgeoclue-2.0 >= 2.3.1
21 ])
22
23 YELP_HELP_INIT
24--- origsrc/gnome-clocks-3.22.1/src/world.vala 2016-10-10 01:35:22.000000000 -0500
25+++ src/gnome-clocks-3.22.1/src/world.vala 2017-03-17 12:11:21.435021200 -0500
26@@ -301,11 +301,13 @@ public class Face : Gtk.Stack, Clocks.Cl
27 load ();
28 show_all ();
29
30+#if GEOCLUE
31 if (settings.get_boolean ("geolocation")) {
32 use_geolocation.begin ((obj, res) => {
33 use_geolocation.end (res);
34 });
35 }
36+#endif
37
38 locations.items_changed.connect ((position, removed, added) => {
39 save ();
40@@ -361,6 +363,7 @@ public class Face : Gtk.Stack, Clocks.Cl
41 settings.set_value ("world-clocks", locations.serialize ());
42 }
43
44+#if GEOCLUE
45 private async void use_geolocation () {
46 Geo.Info geo_info = new Geo.Info ();
47
48@@ -382,6 +385,7 @@ public class Face : Gtk.Stack, Clocks.Cl
49
50 yield geo_info.seek ();
51 }
52+#endif
53
54 private void add_location_item (Item item) {
55 locations.add (item);
This page took 0.074243 seconds and 5 git commands to generate.