summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 1d70c5c..d4ed7b5 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -946,11 +946,7 @@ gpm_manager_button_pressed_cb (GpmButton *button, const gchar *type, GpmManager
* gpm_manager_client_changed_cb:
**/
static void
-#if UP_CHECK_VERSION(0, 99, 0)
gpm_manager_client_changed_cb (UpClient *client, GParamSpec *pspec, GpmManager *manager)
-#else
-gpm_manager_client_changed_cb (UpClient *client, GpmManager *manager)
-#endif
{
gboolean event_when_closed;
gint timeout;
@@ -1852,15 +1848,10 @@ gpm_manager_init (GpmManager *manager)
g_signal_connect (manager->priv->settings, "changed",
G_CALLBACK (gpm_manager_settings_changed_cb), manager);
manager->priv->client = up_client_new ();
-#if UP_CHECK_VERSION(0, 99, 0)
g_signal_connect (manager->priv->client, "notify::lid-is-closed",
G_CALLBACK (gpm_manager_client_changed_cb), manager);
g_signal_connect (manager->priv->client, "notify::on-battery",
G_CALLBACK (gpm_manager_client_changed_cb), manager);
-#else
- g_signal_connect (manager->priv->client, "changed",
- G_CALLBACK (gpm_manager_client_changed_cb), manager);
-#endif
/* use libmatenotify */
notify_init (GPM_NAME);