1
// -*- Mode: vala; indent-tabs-mode: nil; tab-width: 4 -*-
3
* Copyright (C) 2012 Victor Eduardo <victoreduardm@gmail.com>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* See the file COPYING for the full license text.
13
namespace Huddle.Settings {
15
public class Main : Granite.Services.Settings {
16
private static Main? _instance;
17
public static Main instance {
19
if (_instance == null)
20
_instance = new Main ();
25
public bool hide_on_close { get; set; }
28
assert (_instance == null);
29
base ("net.launchpad.huddle.Main");
33
public class SavedState : Granite.Services.Settings {
34
private static SavedState? _instance;
35
public static SavedState instance {
37
if (_instance == null)
38
_instance = new SavedState ();
43
public uint window_width { get; set; }
44
public uint window_height { get; set; }
45
public int window_state { get; set; }
46
public uint sidebar_width { get; set; }
48
private SavedState () {
49
assert (_instance == null);
50
base ("net.launchpad.huddle.SavedState");