summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-24 20:19:01 +0200
committerStefano Karapetsas <[email protected]>2014-04-24 20:19:01 +0200
commit8f734c679de61292f0ae1bd9923fc67801ab041c (patch)
tree0029d23d8ad72181673596174c824eee3c0808f9 /src/gpm-manager.c
parent1fb28703f76a97421f3554d5c553b06707f890a7 (diff)
downloadmate-power-manager-8f734c679de61292f0ae1bd9923fc67801ab041c.tar.bz2
mate-power-manager-8f734c679de61292f0ae1bd9923fc67801ab041c.tar.xz
Other round of fixes for UPower 0.99 API changes
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index df84cac..09bd0c0 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1858,7 +1858,9 @@ gpm_manager_init (GpmManager *manager)
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",
+ 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",