summaryrefslogtreecommitdiffstats
path: root/x11/mate-applets/files/patch-battstat_battstat-upower.c
blob: 4a4351efcba9c5f31ce87c2b0fb1bf0aa1710900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- battstat/battstat-upower.c.orig 2014-04-06 21:28:44.142056837 +0000
+++ battstat/battstat-upower.c  2014-04-06 21:29:46.913052233 +0000
@@ -86,7 +86,11 @@
   GCancellable *cancellable = g_cancellable_new();
   GError *gerror;
 
+#ifdef HAVE_OLD_UPOWER
   if (! up_client_enumerate_devices_sync( upc, cancellable, &gerror ) ) {
+#else
+  if (FALSE){
+#endif
     sprintf(error_str, "Unable to enumerate upower devices: %s\n", gerror->message);
     goto error_shutdownclient;
   }