Merge lp:~elementary-pantheon/switchboard-plug-power/prefs-spec into lp:~elementary-apps/switchboard-plug-power/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Corentin Noël
Approved revision: 382
Merged at revision: 382
Proposed branch: lp:~elementary-pantheon/switchboard-plug-power/prefs-spec
Merge into: lp:~elementary-apps/switchboard-plug-power/trunk
Diff against target: 19 lines (+4/-1)
1 file modified
src/Plug.vala (+4/-1)
To merge this branch: bzr merge lp:~elementary-pantheon/switchboard-plug-power/prefs-spec
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+313265@code.launchpad.net

Commit message

Implement Preferences URL Spec

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Plug.vala'
2--- src/Plug.vala 2016-11-20 11:30:04 +0000
3+++ src/Plug.vala 2016-12-14 19:08:13 +0000
4@@ -40,11 +40,14 @@
5 private const string LAPTOP_DETECT_BINARY = "/usr/sbin/laptop-detect";
6
7 public Plug () {
8+ var switchboard_settings = new Gee.TreeMap<string, string?> (null, null);
9+ switchboard_settings.set ("power", "null");
10 Object (category: Category.HARDWARE,
11 code_name: "system-pantheon-power",
12 display_name: _("Power"),
13 description: _("Configure display brightness, power buttons, and sleep behavior"),
14- icon: "preferences-system-power");
15+ icon: "preferences-system-power",
16+ supported_settings: switchboard_settings);
17
18 settings = new GLib.Settings ("org.gnome.settings-daemon.plugins.power");
19 pantheon_dpms_settings = new GLib.Settings ("org.pantheon.dpms");

Subscribers

People subscribed via source and target branches