gnome-clocks 3.22.1
[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
6@@ -92,7 +92,6 @@ AM_VALAFLAGS = \
7 --pkg gweather-3.0 \
8 --pkg gsound \
9 --pkg geocode-glib-1.0 \
10- --pkg Geoclue-2.0 \
11 --gresources $(top_srcdir)/data/gnome-clocks.gresource.xml
12
13 bin_PROGRAMS = gnome-clocks
14@@ -114,7 +113,6 @@ VALA_SOURCES = \
15 src/timer.vala \
16 src/utils.vala \
17 src/widgets.vala \
18- src/geocoding.vala \
19 src/search-provider.vala \
20 src/main.vala
21
22--- origsrc/gnome-clocks-3.22.1/configure.ac 2016-10-10 01:36:23.000000000 -0500
23+++ src/gnome-clocks-3.22.1/configure.ac 2017-03-17 12:10:01.776782700 -0500
24@@ -56,7 +56,6 @@ PKG_CHECK_MODULES(CLOCKS, [
25 gweather-3.0 >= 3.13.91
26 gnome-desktop-3.0 >= 3.7.90
27 geocode-glib-1.0 >= 0.99.4
28- libgeoclue-2.0 >= 2.3.1
29 ])
30
31 YELP_HELP_INIT
32--- origsrc/gnome-clocks-3.22.1/src/world.vala 2016-10-10 01:35:22.000000000 -0500
33+++ src/gnome-clocks-3.22.1/src/world.vala 2017-03-17 12:11:21.435021200 -0500
34@@ -301,11 +301,13 @@ public class Face : Gtk.Stack, Clocks.Cl
35 load ();
36 show_all ();
37
38+#if GEOCLUE
39 if (settings.get_boolean ("geolocation")) {
40 use_geolocation.begin ((obj, res) => {
41 use_geolocation.end (res);
42 });
43 }
44+#endif
45
46 locations.items_changed.connect ((position, removed, added) => {
47 save ();
48@@ -361,6 +363,7 @@ public class Face : Gtk.Stack, Clocks.Cl
49 settings.set_value ("world-clocks", locations.serialize ());
50 }
51
52+#if GEOCLUE
53 private async void use_geolocation () {
54 Geo.Info geo_info = new Geo.Info ();
55
56@@ -382,6 +385,7 @@ public class Face : Gtk.Stack, Clocks.Cl
57
58 yield geo_info.seek ();
59 }
60+#endif
61
62 private void add_location_item (Item item) {
63 locations.add (item);
This page took 0.024045 seconds and 5 git commands to generate.