Merge lp:~seb128/unity-settings-daemon/better-keyboard-backlight into lp:unity-settings-daemon

Proposed by Sebastien Bacher on 2016-05-13
Status: Merged
Approved by: Marco Trevisan (Treviño) on 2016-05-13
Approved revision: 4133
Merged at revision: 4134
Proposed branch: lp:~seb128/unity-settings-daemon/better-keyboard-backlight
Merge into: lp:unity-settings-daemon
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/power/gsd-power-manager.c (+1/-1)
To merge this branch: bzr merge lp:~seb128/unity-settings-daemon/better-keyboard-backlight
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) 2016-05-13 Approve on 2016-05-13
Review via email: mp+294612@code.launchpad.net

Commit message

power: '0' keyboard backlight is a valid value

Description of the change

power: '0' keyboard backlight is a valid value

the fix is backported from upstream commit
https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=c311de7

To post a comment you must log in.
Marco Trevisan (Treviño) (3v1n0) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/power/gsd-power-manager.c'
2--- plugins/power/gsd-power-manager.c 2015-10-22 09:04:20 +0000
3+++ plugins/power/gsd-power-manager.c 2016-05-13 09:29:54 +0000
4@@ -2894,7 +2894,7 @@
5
6 /* set brightness to max if not currently set so is something
7 * sensible */
8- if (manager->priv->kbd_brightness_now <= 0) {
9+ if (manager->priv->kbd_brightness_now < 0) {
10 gboolean ret;
11 ret = upower_kbd_set_brightness (manager,
12 manager->priv->kbd_brightness_max,

Subscribers

People subscribed via source and target branches