summaryrefslogtreecommitdiffstats
path: root/redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
commitb4359e8bf97799f83dc1ca62744db7cfcc81bc87 (patch)
tree3346872613490cc467c19e1645d0026c1221bce7 /redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch
parent4cc71d79c5718d59078d06c497a56d7c05b41576 (diff)
downloadtde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.tar.gz
tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.zip
RPM Packaging: rename directories
Diffstat (limited to 'redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch')
-rw-r--r--redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch b/redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch
new file mode 100644
index 000000000..f941cc20a
--- /dev/null
+++ b/redhat/tdebase/kdebase-3.5.13-kdesu-noignorebutton.patch
@@ -0,0 +1,45 @@
+diff -rcb kdebase.ORI/kdesu/kdesu/sudlg.cpp kdebase/kdesu/kdesu/sudlg.cpp
+*** kdebase.ORI/kdesu/kdesu/sudlg.cpp 2010-12-17 22:55:07.725798945 +0100
+--- kdebase/kdesu/kdesu/sudlg.cpp 2010-12-17 22:55:49.378797283 +0100
+***************
+*** 15,21 ****
+ #include "sudlg.h"
+
+ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton)
+! : KPasswordDialog(Password, enableKeep, (withIgnoreButton ? User1:NoDefault), icon)
+ {
+ KConfig* config = KGlobal::config();
+ config->setGroup("super-user-command");
+--- 15,21 ----
+ #include "sudlg.h"
+
+ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton)
+! : KPasswordDialog(Password, enableKeep, 0, icon)
+ {
+ KConfig* config = KGlobal::config();
+ config->setGroup("super-user-command");
+***************
+*** 34,45 ****
+ } else {
+ if (m_User == "root") {
+ prompt = i18n("The action you requested needs root privileges. "
+! "Please enter root's password below or click "
+! "Ignore to continue with your current privileges.");
+ } else {
+ prompt = i18n("The action you requested needs additional privileges. "
+! "Please enter the password for \"%1\" below or click "
+! "Ignore to continue with your current privileges.").arg(static_cast<const char *>(m_User));
+ }
+ }
+ setPrompt(prompt);
+--- 34,43 ----
+ } else {
+ if (m_User == "root") {
+ prompt = i18n("The action you requested needs root privileges. "
+! "Please enter root's password below.");
+ } else {
+ prompt = i18n("The action you requested needs additional privileges. "
+! "Please enter the password for \"%1\" below.").arg(static_cast<const char *>(m_User));
+ }
+ }
+ setPrompt(prompt);