diff options
author | Pacho Ramos <pacho@gentoo.org> | 2017-06-18 11:17:04 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2017-06-18 11:17:28 +0200 |
commit | fca6415a9829db5fa82e87c5f3cf1d2d4e4cb69b (patch) | |
tree | ac579e5127e7413fb617820e54e8d8a142944699 /app-laptop/batti/files/batti-0.3.8-upower-capital.patch | |
parent | media-plugins/gst-plugins-meta: bump to 1.10.5 (diff) | |
download | gentoo-fca6415a9829db5fa82e87c5f3cf1d2d4e4cb69b.tar.gz gentoo-fca6415a9829db5fa82e87c5f3cf1d2d4e4cb69b.tar.bz2 gentoo-fca6415a9829db5fa82e87c5f3cf1d2d4e4cb69b.zip |
app-laptop/batti: Support current upower version (#600914 by idl0r), hicolor-icon-theme provides the enough icons for this.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'app-laptop/batti/files/batti-0.3.8-upower-capital.patch')
-rw-r--r-- | app-laptop/batti/files/batti-0.3.8-upower-capital.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-laptop/batti/files/batti-0.3.8-upower-capital.patch b/app-laptop/batti/files/batti-0.3.8-upower-capital.patch new file mode 100644 index 000000000000..e7f62761661c --- /dev/null +++ b/app-laptop/batti/files/batti-0.3.8-upower-capital.patch @@ -0,0 +1,32 @@ +From 1e0fe57a93ed3996bad295e20eeda81f6af483af Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Wed, 20 Jul 2016 20:14:32 +0200 +Subject: [PATCH] The type property (in recent UPower at least) needs to have a + capital T - "Type" + +--- + src/PowerBackend.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/PowerBackend.py b/src/PowerBackend.py +index e020b98..56bcb61 100644 +--- a/src/PowerBackend.py ++++ b/src/PowerBackend.py +@@ -165,7 +165,7 @@ def __init__(self): + self.__batteries = {} + for dev in devices: + (prop_iface, dev_iface) = self.__get_battery(dev) +- type = prop_iface.Get(self.device_interface, 'type') ++ type = prop_iface.Get(self.device_interface, 'Type') + if type == self.bat_type: + power_bat = UPowerBattery(prop_iface, dev_iface) + self.__batteries[dev] = power_bat +@@ -228,7 +228,7 @@ def set_right_popup_menu_action(self, action): + def __device_added(self, udi): + (prop_iface, dev_iface) = self.__get_battery(udi) + try: +- type = prop_iface.Get(self.device_interface, 'type') ++ type = prop_iface.Get(self.device_interface, 'Type') + if type == self.bat_type: + power_bat = UPowerBattery(prop_iface, dev_iface) + power_bat.set_left_popup_menu_action(self.__mc_action) |