summaryrefslogtreecommitdiff
path: root/src/utilities/config.vala
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-05-20 20:01:22 +0200
committerAlessandro Ghedini <al3xbio@gmail.com>2012-05-20 20:01:22 +0200
commita095c29cd9cc8e4a43d79548bc57b870c6e90bfa (patch)
treedaf6e98fbb58b7f78213e98d9291255c151d8671 /src/utilities/config.vala
parentb3977b8585efcd19a73e3bf7f25f41b01d9d4cae (diff)
parent87a5b11d7598fc1e5239e11972c5e03a38bbb672 (diff)
Merge tag 'upstream/0.5.3'
Upstream version 0.5.3
Diffstat (limited to 'src/utilities/config.vala')
-rw-r--r--src/utilities/config.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utilities/config.vala b/src/utilities/config.vala
index cc776d5..1d8b714 100644
--- a/src/utilities/config.vala
+++ b/src/utilities/config.vala
@@ -57,6 +57,7 @@ public class Config : GLib.Object {
public bool show_indicator { get; set; default = true; }
public bool show_captions { get; set; default = true; }
public bool auto_start { get; set; default = false; }
+ public int showed_news { get; set; default = 0; }
public Gee.ArrayList<Theme?> themes { get; private set; }
/////////////////////////////////////////////////////////////////////
@@ -72,6 +73,7 @@ public class Config : GLib.Object {
writer.write_attribute("global_scale", global_scale.to_string());
writer.write_attribute("show_indicator", show_indicator ? "true" : "false");
writer.write_attribute("show_captions", show_captions ? "true" : "false");
+ writer.write_attribute("showed_news", showed_news.to_string());
writer.end_element();
writer.end_document();
}
@@ -117,6 +119,9 @@ public class Config : GLib.Object {
case "show_captions":
show_captions = bool.parse(attr_content);
break;
+ case "showed_news":
+ showed_news = int.parse(attr_content);
+ break;
default:
warning("Invalid setting \"" + attr_name + "\" in gnome-pie.conf!");
break;