Merge lp:~alucryd/switchboard-plug-power/fix-1279689 into lp:~elementary-apps/switchboard-plug-power/trunk

Proposed by Maxime Gauduin
Status: Merged
Approved by: Danielle Foré
Approved revision: 104
Merged at revision: 106
Proposed branch: lp:~alucryd/switchboard-plug-power/fix-1279689
Merge into: lp:~elementary-apps/switchboard-plug-power/trunk
Diff against target: 21 lines (+1/-5)
1 file modified
src/Plug.vala (+1/-5)
To merge this branch: bzr merge lp:~alucryd/switchboard-plug-power/fix-1279689
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+208943@code.launchpad.net

Commit message

Remove use of deprecated 'lid-close-ac-action' gsettings key

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Plug.vala'
--- src/Plug.vala 2014-01-06 22:59:56 +0000
+++ src/Plug.vala 2014-03-01 20:52:33 +0000
@@ -128,10 +128,6 @@
128 grid.attach (scale_label, 0, 0, 1, 1);128 grid.attach (scale_label, 0, 0, 1, 1);
129 grid.attach (scale, 1, 0, 1, 1);129 grid.attach (scale, 1, 0, 1, 1);
130 130
131 var lid_closed_box = new ComboBox (_("When the lid is closed:"), @"lid-close-$type-action");
132 grid.attach (lid_closed_box.label, 0, 1, 1, 1);
133 grid.attach (lid_closed_box, 1, 1, 1, 1);
134
135 if (type != "ac") {131 if (type != "ac") {
136 var critical_box = new ComboBox (_("When battery power is critically low:"), "critical-battery-action");132 var critical_box = new ComboBox (_("When battery power is critically low:"), "critical-battery-action");
137 grid.attach (critical_box.label, 0, 2, 1, 1);133 grid.attach (critical_box.label, 0, 2, 1, 1);
@@ -161,4 +157,4 @@
161 debug ("Activating Power plug");157 debug ("Activating Power plug");
162 var plug = new Power.Plug ();158 var plug = new Power.Plug ();
163 return plug;159 return plug;
164}
165\ No newline at end of file160\ No newline at end of file
161}

Subscribers

People subscribed via source and target branches

to all changes: