commit b31ee5a74937988e75676e505677412588a85c31
Author: Mariusz Mazur <mma...@pld-linux.org>
Date:   Wed Mar 9 23:07:13 2016 +0100

    rel 5; remove blinking on pause for timer applet
    
    The animation ate a metric load of cpu for no good reason.

 kde4-kdeplasma-addons.spec       |  4 +++-
 timer_applet_cpu_usage_fix.patch | 29 +++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/kde4-kdeplasma-addons.spec b/kde4-kdeplasma-addons.spec
index a0f3009..ddd3214 100644
--- a/kde4-kdeplasma-addons.spec
+++ b/kde4-kdeplasma-addons.spec
@@ -10,11 +10,12 @@ Summary:    KDE4 Plasmoids
 Summary(pl.UTF-8):     Plazmoidy dla KDE4
 Name:          kde4-kdeplasma-addons
 Version:       4.14.3
-Release:       4
+Release:       5
 License:       GPL v2
 Group:         X11/Applications
 Source0:       
http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
 # Source0-md5: bf98d9bf1502ab4ff392fdd9b4703664
+Patch0:                timer_applet_cpu_usage_fix.patch
 Patch100:      %{name}-branch.diff
 URL:           http://www.kde.org/
 BuildRequires: OpenGL-GLU-devel
@@ -95,6 +96,7 @@ opartych na plazmoidach dla KDE4.
 
 %prep
 %setup -q -n %{orgname}-%{version}
+%patch0 -p1
 #%patch100 -p0
 
 %build
diff --git a/timer_applet_cpu_usage_fix.patch b/timer_applet_cpu_usage_fix.patch
new file mode 100644
index 0000000..9746934
--- /dev/null
+++ b/timer_applet_cpu_usage_fix.patch
@@ -0,0 +1,29 @@
+--- kdeplasma-addons-4.14.3/applets/timer/timer.cpp.orig       2014-10-25 
09:17:51.000000000 +0200
++++ kdeplasma-addons-4.14.3/applets/timer/timer.cpp    2016-03-09 
22:46:25.914056980 +0100
+@@ -391,7 +391,7 @@
+ {
+     m_running = true;
+     saveTimer();
+-    setBlinking(false);
++    setDigitOpacity(1.0);
+     m_timer.start(1000);
+ 
+     m_startAction->setEnabled(false);
+@@ -403,7 +403,7 @@
+ {
+     m_running = false;
+     saveTimer();
+-    setBlinking(true);
++    setDigitOpacity(0.3);
+     m_timer.stop();
+ 
+     m_startAction->setEnabled(true);
+@@ -415,7 +415,7 @@
+ {
+     m_running = false;
+     saveTimer();
+-    setBlinking(false);
++    setDigitOpacity(1.0);
+     m_timer.stop();
+ 
+     setSeconds(m_startingSeconds);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde4-kdeplasma-addons.git/commitdiff/b31ee5a74937988e75676e505677412588a85c31

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to