diff options
author | Pacho Ramos <pacho@gentoo.org> | 2014-05-31 18:06:23 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2014-05-31 18:06:23 +0000 |
commit | ec69a5cad53fc32cd4b4718698d5fccb8d8a3571 (patch) | |
tree | 4cf47aaad402ba3ce1590ac33f4ba78bd0b0d7db /app-laptop/batti/files/batti-0.3.8-upower-0.99.patch | |
parent | amd64 stable, bug #509076 (diff) | |
download | historical-ec69a5cad53fc32cd4b4718698d5fccb8d8a3571.tar.gz historical-ec69a5cad53fc32cd4b4718698d5fccb8d8a3571.tar.bz2 historical-ec69a5cad53fc32cd4b4718698d5fccb8d8a3571.zip |
Use patch from ArchLinux to support upower-0.99 (x11-misc/cbatticon is another alternative to this package that has dead upstream since 2011)
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'app-laptop/batti/files/batti-0.3.8-upower-0.99.patch')
-rw-r--r-- | app-laptop/batti/files/batti-0.3.8-upower-0.99.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch b/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch new file mode 100644 index 000000000000..6f313a594c94 --- /dev/null +++ b/app-laptop/batti/files/batti-0.3.8-upower-0.99.patch @@ -0,0 +1,34 @@ +diff -Naur batti-0.3.8.orig/src/PowerBackend.py batti-0.3.8/src/PowerBackend.py +--- batti-0.3.8.orig/src/PowerBackend.py 2014-04-15 19:30:34.123260000 +0200 ++++ batti-0.3.8/src/PowerBackend.py 2014-04-15 19:32:11.859168509 +0200 +@@ -180,17 +180,6 @@ + + properties = dbus.Interface(iface, 'org.freedesktop.DBus.Properties') + +- if properties.Get(self.dbus_interface, 'CanSuspend'): +- self.__can_suspend = True +- else: +- self.__can_suspend = False +- +- if properties.Get(self.dbus_interface, 'CanHibernate'): +- self.__can_hibernate = True +- else: +- self.__can_hibernate = False +- +- + def __get_interface(self): + dkit_obj = self.__bus.get_object(self.dbus_service, self.dbus_object) + return dbus.Interface(dkit_obj, self.dbus_interface) +@@ -201,12 +190,6 @@ + self.__mc_action(widget, event, data) + + +- def can_suspend(self): +- return self.__can_suspend and self.__get_interface().SuspendAllowed() +- +- def can_hibernate(self): +- return self.__can_hibernate and self.__get_interface().HibernateAllowed() +- + def suspend(self): + self.__get_interface().Suspend() + |