~elementary-pantheon/wingpanel-indicator-a11y/master

« back to all changes in this revision

Viewing changes to src/SessionSettings.vala

  • Committer: GitHub
  • Author(s): Daniel Foré
  • Date: 2019-09-03 23:50:27 UTC
  • Revision ID: git-v1:e09121e4a653908640b8f8815b6967aa5ae91cf0
SessionWidget: Rewrite using GLib.Settings (#16)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
* Copyright (c) 2015-2019 elementary, Inc. (https://elementary.io)
3
 
*
4
 
* This program is free software; you can redistribute it and/or
5
 
* modify it under the terms of the GNU General Public
6
 
* License as published by the Free Software Foundation; either
7
 
* version 2 of the License, or (at your option) any later version.
8
 
*
9
 
* This program is distributed in the hope that it will be useful,
10
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
* General Public License for more details.
13
 
*
14
 
* You should have received a copy of the GNU General Public
15
 
* License along with this program; if not, write to the
16
 
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
 
* Boston, MA 02110-1301 USA
18
 
*/
19
 
 
20
 
public class A11Y.A11ySettings : Granite.Services.Settings {
21
 
    public bool always_show_universal_access_status { get; set; }
22
 
 
23
 
    public A11ySettings () {
24
 
        base ("org.gnome.desktop.a11y");
25
 
    }
26
 
}
27
 
 
28
 
public class A11Y.ApplicationsSettings : Granite.Services.Settings {
29
 
    public bool screen_reader_enabled { get; set; }
30
 
    public bool screen_keyboard_enabled { get; set; }
31
 
 
32
 
    public ApplicationsSettings () {
33
 
        base ("org.gnome.desktop.a11y.applications");
34
 
    }
35
 
}
36
 
 
37
 
public class A11Y.KeyboardSettings : Granite.Services.Settings {
38
 
    public bool slowkeys_enable { get; set; }
39
 
    public bool bouncekeys_enable { get; set; }
40
 
    public bool stickykeys_enable { get; set; }
41
 
 
42
 
    public KeyboardSettings () {
43
 
        base ("org.gnome.desktop.a11y.keyboard");
44
 
    }
45
 
}