diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2015-08-05 14:21:10 -0700 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2015-08-05 14:21:10 -0700 |
commit | 3aeda138ac4c946071efcdb7ec97d688455058b7 (patch) | |
tree | b7771f96b9c73638591dc5e87077d5466b64603c | |
parent | 2842336c1607059a9632055e446a5116664a6492 (diff) | |
download | gnome-initial-setup-3aeda138ac4c946071efcdb7ec97d688455058b7.tar.gz |
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>
-rw-r--r-- | gnome-initial-setup/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); |