~elementary-apps/pantheon-files/trunk

« back to all changes in this revision

Viewing changes to libcore/gof-preferences.vala

  • Committer: Jeremy Wootten
  • Date: 2017-05-08 10:39:31 UTC
  • mfrom: (2557 pantheon-files)
  • mto: This revision was merged to the branch mainline in revision 2558.
  • Revision ID: jeremy@elementaryos.org-20170508103931-jkxai92h7pf2yw2r
Merge trunk to r2557

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
    This program is free software: you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
6
 
    the Free Software Foundation, either version 3 of the License, or
 
6
    the Free Software Foundation, Inc.,, either version 3 of the License, or
7
7
    (at your option) any later version.
8
8
 
9
9
    This program is distributed in the hope that it will be useful,
23
23
 
24
24
        public const string TAGS_COLORS[10] = { null, "#fce94f", "#fcaf3e", "#997666", "#8ae234", "#729fcf", "#ad7fa8", "#ef2929", "#d3d7cf", "#888a85" };
25
25
 
26
 
        public bool pref_show_hidden_files = false;
27
 
        public bool show_hidden_files {
28
 
            get {
29
 
                return pref_show_hidden_files;
30
 
            }
31
 
            set {
32
 
                pref_show_hidden_files = value;
33
 
            }
34
 
        }
35
 
 
 
26
        public bool show_hidden_files {get; set; default=false;}
36
27
        public bool show_remote_thumbnails {set; get; default=false;}
37
 
 
38
 
        public bool pref_confirm_trash = true;
39
 
        public bool confirm_trash {
40
 
            get {
41
 
                return pref_confirm_trash;
42
 
            }
43
 
            set {
44
 
                pref_confirm_trash = value;
45
 
            }
46
 
        }
47
 
 
48
 
        public bool pref_force_icon_size = true;
49
 
        public bool force_icon_size {
50
 
            get {
51
 
                return pref_force_icon_size;
52
 
            }
53
 
            set {
54
 
                pref_force_icon_size = value;
55
 
            }
56
 
        }
57
 
 
58
 
        public string pref_date_format = "iso";
59
 
        public string date_format {
60
 
            get {
61
 
                return pref_date_format;
62
 
            }
63
 
            set {
64
 
                pref_date_format = value;
65
 
            }
66
 
        }
67
 
 
68
 
        public class Preferences () {
69
 
 
70
 
        }
 
28
        public bool confirm_trash {set; get; default=true;}
 
29
        public bool force_icon_size {set; get; default=true;}
 
30
        public string date_format {set; get; default="iso";}
 
31
        public string clock_format {set; get; default="24h";}
71
32
 
72
33
        public static Preferences get_default () {
73
 
            if (preferences != null)
74
 
                return preferences;
 
34
            if (preferences == null) {
 
35
                preferences = new Preferences ();
 
36
            }
75
37
 
76
 
            preferences = new Preferences ();
77
38
            return preferences;
78
39
        }
79
40
    }