diff options
author | raveit65 <[email protected]> | 2013-11-10 03:03:38 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-01 11:44:28 +0100 |
commit | 6fca38a74cc9e6b4ce107496f2e0e7d203c43d2b (patch) | |
tree | a5c3706dedc1a921e6979850ab7241c658d303c4 | |
parent | 98dfd949e9209eefc0722fb232761f01b4fe2d7e (diff) | |
download | mate-applets-1.6.tar.bz2 mate-applets-1.6.tar.xz |
battstat: use g_signal notify for upower-1.01.6
-rw-r--r-- | battstat/battstat-upower.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c index f10e6fc4..f42de3fd 100644 --- a/battstat/battstat-upower.c +++ b/battstat/battstat-upower.c @@ -92,8 +92,11 @@ battstat_upower_initialise (void (*callback) (void)) goto error_shutdownclient; } #endif - +#if UP_CHECK_VERSION(0, 99, 0) + g_signal_connect_after( upc, "notify", device_cb, NULL ); +#else g_signal_connect_after( upc, "device-changed", device_cb, NULL ); +#endif g_signal_connect_after( upc, "device-added", device_cb, NULL ); g_signal_connect_after( upc, "device-removed", device_cb, NULL ); |