gnome-clocks 3.26.1
[git/cygwin-packages/gnome-clocks.git] / 3.26.1-without-geoclue.patch
CommitLineData
ec69daf4
YS
1--- origsrc/gnome-clocks-3.26.1/meson.build 2017-10-15 07:22:56.000000000 -0500
2+++ src/gnome-clocks-3.26.1/meson.build 2018-02-14 01:22:58.958965500 -0600
3@@ -17,7 +17,6 @@ gsound = dependency('gsound', version: '
4 gweather = dependency('gweather-3.0', version: '>=3.14')
5 gnomedesktop = dependency('gnome-desktop-3.0', version: '>=3.8')
6 geocodeglib = dependency('geocode-glib-1.0', version: '>=1.0')
7-libgeoclue = dependency('libgeoclue-2.0', version: '>=2.4')
8
9 cc = meson.get_compiler('c')
10 math = cc.find_library('m', required: false)
11--- origsrc/gnome-clocks-3.26.1/src/meson.build 2017-10-15 07:22:56.000000000 -0500
12+++ src/gnome-clocks-3.26.1/src/meson.build 2018-02-14 01:23:16.664893400 -0600
13@@ -6,7 +6,6 @@ clocks_vala_sources = [
14 'alarm.vala',
15 'application.vala',
16 'clock.vala',
17- 'geocoding.vala',
18 'main.vala',
19 'search-provider.vala',
20 'stopwatch.vala',
21@@ -49,7 +48,6 @@ clocks_dependencies = [
22 gweather,
23 gnomedesktop,
24 geocodeglib,
25- libgeoclue,
26 math
27 ]
28
29--- origsrc/gnome-clocks-3.26.1/src/world.vala 2017-10-15 07:22:56.000000000 -0500
30+++ src/gnome-clocks-3.26.1/src/world.vala 2018-02-14 01:23:38.427680000 -0600
31@@ -341,11 +341,13 @@ public class Face : Gtk.Stack, Clocks.Cl
32 load ();
33 show_all ();
34
35+#if GEOCLUE
36 if (settings.get_boolean ("geolocation")) {
37 use_geolocation.begin ((obj, res) => {
38 use_geolocation.end (res);
39 });
40 }
41+#endif
42
43 locations.items_changed.connect ((position, removed, added) => {
44 save ();
45@@ -401,6 +403,7 @@ public class Face : Gtk.Stack, Clocks.Cl
46 settings.set_value ("world-clocks", locations.serialize ());
47 }
48
49+#if GEOCLUE
50 private async void use_geolocation () {
51 Geo.Info geo_info = new Geo.Info ();
52
53@@ -421,6 +424,7 @@ public class Face : Gtk.Stack, Clocks.Cl
54
55 yield geo_info.seek ();
56 }
57+#endif
58
59 private void add_location_item (Item item) {
60 locations.add (item);
This page took 0.024223 seconds and 5 git commands to generate.