summaryrefslogtreecommitdiffstats
path: root/tdesu
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-31 21:49:59 -0600
committerTimothy Pearson <[email protected]>2013-01-31 21:49:59 -0600
commit93943a849d1abc2003ceefe294dc419b9927f7d0 (patch)
treea6c2696cdd5c3b5339f2b6f821062a32cf46ae53 /tdesu
parent01c60a267846a8712bca34218ecf7da57566c049 (diff)
downloadtdebase-93943a849d1abc2003ceefe294dc419b9927f7d0.tar.gz
tdebase-93943a849d1abc2003ceefe294dc419b9927f7d0.zip
Rename KStartup for enhanced compatibility with KDE4
Diffstat (limited to 'tdesu')
-rw-r--r--tdesu/tdesu/tdesu.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdesu/tdesu/tdesu.cpp b/tdesu/tdesu/tdesu.cpp
index ab3abce5c..ec3da142d 100644
--- a/tdesu/tdesu/tdesu.cpp
+++ b/tdesu/tdesu/tdesu.cpp
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
}
{
- KStartupInfoId id;
+ TDEStartupInfoId id;
id.initId( kapp->startupId());
id.setupStartupEnv(); // make DESKTOP_STARTUP_ID env. var. available again
}
@@ -356,11 +356,11 @@ static int startApp()
TQCString password;
if (needpw)
{
- KStartupInfoId id;
+ TDEStartupInfoId id;
id.initId( kapp->startupId());
- KStartupInfoData data;
- data.setSilent( KStartupInfoData::Yes );
- KStartupInfo::sendChange( id, data );
+ TDEStartupInfoData data;
+ data.setSilent( TDEStartupInfoData::Yes );
+ TDEStartupInfo::sendChange( id, data );
KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton, timeout);
if (prompt)
dlg.addLine(i18n("Command:"), command);
@@ -376,7 +376,7 @@ static int startApp()
int ret = dlg.exec();
if (ret == KDEsuDialog::Rejected)
{
- KStartupInfo::sendFinish( id );
+ TDEStartupInfo::sendFinish( id );
exit(0);
}
if (ret == KDEsuDialog::AsUser)
@@ -384,8 +384,8 @@ static int startApp()
password = dlg.password();
keep = dlg.keep();
TDEConfigGroup(config,"Passwords").writeEntry("Keep", keep);
- data.setSilent( KStartupInfoData::No );
- KStartupInfo::sendChange( id, data );
+ data.setSilent( TDEStartupInfoData::No );
+ TDEStartupInfo::sendChange( id, data );
}
// Some events may need to be handled (like a button animation)