diff options
Diffstat (limited to 'battstat')
-rw-r--r-- | battstat/battstat-upower.c | 2 | ||||
-rw-r--r-- | battstat/docs/C/mate-battstat.xml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c index 36acb408..55929491 100644 --- a/battstat/battstat-upower.c +++ b/battstat/battstat-upower.c @@ -86,10 +86,12 @@ battstat_upower_initialise (void (*callback) (void)) GCancellable *cancellable = g_cancellable_new(); GError *gerror; +#if !UP_CHECK_VERSION(0, 9, 99) if (! up_client_enumerate_devices_sync( upc, cancellable, &gerror ) ) { sprintf(error_str, "Unable to enumerate upower devices: %s\n", gerror->message); goto error_shutdownclient; } +#endif g_signal_connect_after( upc, "device-changed", device_cb, NULL ); g_signal_connect_after( upc, "device-added", device_cb, NULL ); diff --git a/battstat/docs/C/mate-battstat.xml b/battstat/docs/C/mate-battstat.xml index 74e5ea60..983772d5 100644 --- a/battstat/docs/C/mate-battstat.xml +++ b/battstat/docs/C/mate-battstat.xml @@ -144,7 +144,7 @@ <revnumber>Battery Charge Monitor Applet Manual V2.2</revnumber> <date>August 2004</date> <revdescription> - <para role="author">Sun MATE Documentation Team</para> + <para role="author">Sun GNOME Documentation Team</para> <para role="publisher">MATE Documentation Project</para> </revdescription> </revision> |