[gnome-clocks/wip/geolocation] Do not save automatic locations
- From: Evgeny Bobkin <ebobkin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/geolocation] Do not save automatic locations
- Date: Mon, 26 Aug 2013 20:40:05 +0000 (UTC)
commit 02f637f93731032255b09d351a0ee449223209b9
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date: Mon Aug 26 22:37:48 2013 +0200
Do not save automatic locations
src/world.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/world.vala b/src/world.vala
index e933559..158fad1 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -24,6 +24,7 @@ private class Item : Object, ContentItem {
private static Gdk.Pixbuf? night_pixbuf = Utils.load_image ("night.png");
public GWeather.Location location { get; set; }
+ public bool automatic { get; set; default = false; }
public string name {
get {
// We store it in a _name member even if we overwrite it every time
@@ -376,10 +377,9 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
if (not_included) {
var item = new Item (found_location);
-
+ item.automatic = true;
locations.append (item);
content_view.add_item (item);
- save ();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]