diff options
author | raveit65 <[email protected]> | 2019-09-25 11:54:39 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-26 11:08:59 +0200 |
commit | fbfbc8c52c6454a9b4a9840c8aac42dcd5d51b5d (patch) | |
tree | b679149816253e6591a9aa2e55cc03de40b4c819 /src/gpm-kbd-backlight.c | |
parent | 92f5ca9facce367ab1eb58cb28326fe5edcd9960 (diff) | |
download | mate-power-manager-fbfbc8c52c6454a9b4a9840c8aac42dcd5d51b5d.tar.bz2 mate-power-manager-fbfbc8c52c6454a9b4a9840c8aac42dcd5d51b5d.tar.xz |
drop obsolete version checks for upower
with required version bump to upower-0.99.8
we don't need them any more.
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index 2be69f7..6f363e8 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -493,10 +493,8 @@ gpm_kbd_backlight_control_resume_cb (GpmControl *control, **/ static void gpm_kbd_backlight_client_changed_cb (UpClient *client, -#if UP_CHECK_VERSION(0, 99, 0) - GParamSpec *pspec, -#endif - GpmKbdBacklight *backlight) + GParamSpec *pspec, + GpmKbdBacklight *backlight) { gpm_kbd_backlight_evaluate_power_source_and_set (backlight); } @@ -760,13 +758,8 @@ noerr: /* Use upower for ac changed signal */ backlight->priv->client = up_client_new (); -#if UP_CHECK_VERSION(0, 99, 0) g_signal_connect (backlight->priv->client, "notify", G_CALLBACK (gpm_kbd_backlight_client_changed_cb), backlight); -#else - g_signal_connect (backlight->priv->client, "changed", - G_CALLBACK (gpm_kbd_backlight_client_changed_cb), backlight); -#endif backlight->priv->settings = g_settings_new (GPM_SETTINGS_SCHEMA); |