diff options
Diffstat (limited to 'source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff')
-rw-r--r-- | source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff b/source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff index ef899e83..79582780 100644 --- a/source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff +++ b/source/kde/patch/kde-workspace/kde-workspace.batteryapplet.diff @@ -1,16 +1,13 @@ -diff -ur kdebase-workspace-4.5.80/plasma/generic/applets/battery/battery.cpp kdebase-workspace-4.5.80-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp ---- kdebase-workspace-4.5.80/plasma/generic/applets/battery/battery.cpp 2010-11-19 11:51:21.000000000 +0100 -+++ kdebase-workspace-4.5.80-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp 2010-11-20 20:39:11.000000000 +0100 -@@ -712,7 +712,11 @@ - m_acInfoLabel->setText(i18n("<b>Not plugged in</b>")); - } +diff -ur kde-workspace-4.8.80/plasma/generic/applets/batterymonitor/contents/config/main.xml kde-workspace-4.8.80-battery-plasmoid-showremainingtime/plasma/generic/applets/batterymonitor/contents/config/main.xml +--- kde-workspace-4.8.80/plasma/generic/applets/batterymonitor/contents/config/main.xml 2012-05-23 01:55:18.000000000 +0200 ++++ kde-workspace-4.8.80-battery-plasmoid-showremainingtime/plasma/generic/applets/batterymonitor/contents/config/main.xml 2012-05-26 22:09:44.000000000 +0200 +@@ -10,7 +10,7 @@ + <default>false</default> + </entry> + <entry name="showRemainingTime" type="Bool"> +- <default>false</default> ++ <default>true</default> + </entry> + </group> -- if (batteryCount && showRemainingTime && m_remainingMSecs > 0) { -+ // Always show the remaining time in the popup. -+ // We don't just set m_showRemainingTime to true by default because -+ // that'd try to use the time also for the icon. That won't fit on -+ // small panels. -+ if (batteryCount && m_remainingMSecs > 0) { - m_remainingTimeLabel->show(); - m_remainingInfoLabel->show(); - // we don't have too much accuracy so only give hours and minutes + |