[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Patch for bug 232648
From: Thomas Fischer <fischer () unix-ag ! uni-kl ! de>
Date: 2010-05-18 9:05:45
Message-ID: 201005181105.45708.fischer () unix-ag ! uni-kl ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hello,
as requested by Beat Wolf in bug report 232648
(https://bugs.kde.org/show_bug.cgi?id=232648) I am sending my patch to
this mailing list. Please check and integrate my patch.
Bye,
Thomas
["lock_logout_ratiotokeep.patch" (text/x-patch)]
diff -Naur _kdebase-workspace-4.4.2_orig/plasma/generic/applets/lock_logout/lockout.cpp \
kdebase-workspace-4.4.2/plasma/generic/applets/lock_logout/lockout.cpp
--- _kdebase-workspace-4.4.2_orig/plasma/generic/applets/lock_logout/lockout.cpp 2010-02-26 \
19:31:57.000000000 +0100
+++ kdebase-workspace-4.4.2/plasma/generic/applets/lock_logout/lockout.cpp 2010-04-26 \
17:06:18.299716442 +0200 @@ -145,7 +145,7 @@
ratioToKeep = m_visibleButtons;
} else {
direction = Qt::Horizontal;
- ratioToKeep = 0.5;
+ ratioToKeep = m_visibleButtons > 1 ? 1.0 / m_visibleButtons : 1;
}
break;
case Plasma::Horizontal:
@@ -154,7 +154,7 @@
ratioToKeep = m_visibleButtons;
} else {
direction = Qt::Vertical;
- ratioToKeep = 0.5;
+ ratioToKeep = m_visibleButtons > 1 ? 1.0 / m_visibleButtons : 1;
}
break;
default:
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic