diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-13 22:35:17 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-13 22:35:17 +0200 |
commit | d5cc21e9a940039caa7d3a32665dbc64a19dbce0 (patch) | |
tree | 03f2c54e82b3e001b41ca4dbb5469fde606fb1ce /src/gpm-kbd-backlight.c | |
parent | fd2ea04942aa4459eefecac1807e4b3107266e76 (diff) | |
download | mate-power-manager-d5cc21e9a940039caa7d3a32665dbc64a19dbce0.tar.bz2 mate-power-manager-d5cc21e9a940039caa7d3a32665dbc64a19dbce0.tar.xz |
Dont print an error if optional hardware is missing
Closes #54 (https://github.com/mate-desktop/mate-power-manager/issues/54)
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index b7aa4a4..72c4f96 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -756,7 +756,8 @@ gpm_kbd_backlight_init (GpmKbdBacklight *backlight) NULL, &error); if (u_brightness == NULL) { - g_warning ("Failed to get brightness: %s", error->message); + if (error->domain != G_DBUS_ERROR || error->code != G_DBUS_ERROR_UNKNOWN_METHOD) + g_warning ("Failed to get brightness: %s", error->message); g_error_free (error); goto err; } |