[gnome-initial-setup] timezone: Make sure to actually create a cancellable
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] timezone: Make sure to actually create a cancellable
- Date: Wed, 5 Aug 2015 21:33:11 +0000 (UTC)
commit 3aeda138ac4c946071efcdb7ec97d688455058b7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Aug 5 14:21:10 2015 -0700
timezone: Make sure to actually create a cancellable
If we're constructing a GeoClue proxy when the page gets finalized, we
don't actually cancel the GeoClue operations, because we forgot to
create a cancellable.
Spotted-by: Mario Sanchez Prada <mario endlessm com>
.../pages/timezone/gis-timezone-page.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
index eeef5fc..5b2d3df 100644
--- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
+++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
@@ -454,6 +454,8 @@ gis_timezone_page_constructed (GObject *object)
exit (1);
}
+ priv->geoclue_cancellable = g_cancellable_new ();
+
set_auto_location (page, NULL);
set_location (page, NULL);
get_location_from_geoclue_async (page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]