]> git.pld-linux.org Git - packages/kde4-kdeplasma-addons.git/commitdiff
rel 5; remove blinking on pause for timer applet auto/th/kde4-kdeplasma-addons-4.14.3-5
authorMariusz Mazur <mmazur@pld-linux.org>
Wed, 9 Mar 2016 22:07:13 +0000 (23:07 +0100)
committerMariusz Mazur <mmazur@pld-linux.org>
Wed, 9 Mar 2016 22:08:04 +0000 (23:08 +0100)
The animation ate a metric load of cpu for no good reason.

kde4-kdeplasma-addons.spec
timer_applet_cpu_usage_fix.patch [new file with mode: 0644]

index a0f300995d4016ff29a3e52a4aec964bebb5ccc6..ddd32146677719b13287aefe3b55ccce9a90a141 100644 (file)
@@ -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 (file)
index 0000000..9746934
--- /dev/null
@@ -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);
This page took 0.083556 seconds and 4 git commands to generate.