[Pkg-xfce-devel] Bug#876285: Bug#876285: xfce4-battery-plugin: stable 10% CPU usage after switching from AC to battery power on X220
- Subject: [Pkg-xfce-devel] Bug#876285: Bug#876285: xfce4-battery-plugin: stable 10% CPU usage after switching from AC to battery power on X220
- From: krylov.r00t at gmail.com (Ivan Krylov)
- Date: Mon, 4 Dec 2017 12:56:43 +0300
- Message-id: <[🔎] 20171204125643.2e43825e@trisector>
- In-reply-to: <1508157791.17141.120.camel@debian.org>
- References: <150591560417.22195.6564415454828322948.reportbug@trisector> <150591560417.22195.6564415454828322948.reportbug@trisector> <20171016140905.5e6a75d0@trisector> <1508157325.17141.119.camel@debian.org> <20171016154203.2d6d4a43@trisector> <1508157791.17141.120.camel@debian.org> <150591560417.22195.6564415454828322948.reportbug@trisector>
I've been running xfce4-battery-plugin with this patch for a week and
noticed no increase in resource usage.
As far as I understand it, creating a new GtkCssProvider every second
made it hard for libgtk to process new requests to change the
progressbar style.
Please let me know if this patch needs to be improved.
--
Best regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dont_leak_css_providers.patch
Type: text/x-patch
Size: 1380 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20171204/7601c8b5/attachment.bin>
Reply to: