summaryrefslogtreecommitdiff
path: root/src/gpm-button.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-09-25 11:54:39 +0200
committerraveit65 <[email protected]>2019-09-26 11:08:59 +0200
commitfbfbc8c52c6454a9b4a9840c8aac42dcd5d51b5d (patch)
treeb679149816253e6591a9aa2e55cc03de40b4c819 /src/gpm-button.c
parent92f5ca9facce367ab1eb58cb28326fe5edcd9960 (diff)
downloadmate-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-button.c')
-rw-r--r--src/gpm-button.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c
index f1ac8e9..0975966 100644
--- a/src/gpm-button.c
+++ b/src/gpm-button.c
@@ -323,11 +323,7 @@ gpm_button_reset_time (GpmButton *button)
* gpm_button_client_changed_cb
**/
static void
-#if UP_CHECK_VERSION(0, 99, 0)
gpm_button_client_changed_cb (UpClient *client, GParamSpec *pspec, GpmButton *button)
-#else
-gpm_button_client_changed_cb (UpClient *client, GpmButton *button)
-#endif
{
gboolean lid_is_closed;
@@ -366,13 +362,8 @@ gpm_button_init (GpmButton *button)
button->priv->client = up_client_new ();
button->priv->lid_is_closed = up_client_get_lid_is_closed (button->priv->client);
-#if UP_CHECK_VERSION(0, 99, 0)
g_signal_connect (button->priv->client, "notify",
G_CALLBACK (gpm_button_client_changed_cb), button);
-#else
- g_signal_connect (button->priv->client, "changed",
- G_CALLBACK (gpm_button_client_changed_cb), button);
-#endif
/* register the brightness keys */
gpm_button_xevent_key (button, XF86XK_PowerOff, GPM_BUTTON_POWER);