|
Lines 160-169
Link Here
|
| 160 |
if (sdmode == KApplication::ShutdownModeDefault) |
160 |
if (sdmode == KApplication::ShutdownModeDefault) |
| 161 |
sdmode = KApplication::ShutdownModeInteractive; |
161 |
sdmode = KApplication::ShutdownModeInteractive; |
| 162 |
|
162 |
|
| 163 |
// shall we show a nice fancy logout screen? |
163 |
// shall we show a logout status dialog box? |
| 164 |
bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true); |
164 |
bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true); |
| 165 |
|
165 |
|
| 166 |
if (showFancyLogout) { |
166 |
if (showLogoutStatusDlg) { |
| 167 |
KSMShutdownIPFeedback::start(); |
167 |
KSMShutdownIPFeedback::start(); |
| 168 |
} |
168 |
} |
| 169 |
|
169 |
|
|
Lines 194-200
Link Here
|
| 194 |
|
194 |
|
| 195 |
// Set the real desktop background to black so that exit looks |
195 |
// Set the real desktop background to black so that exit looks |
| 196 |
// clean regardless of what was on "our" desktop. |
196 |
// clean regardless of what was on "our" desktop. |
| 197 |
if (!showFancyLogout) { |
197 |
if (!showLogoutStatusDlg) { |
| 198 |
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black ); |
198 |
TQT_TQWIDGET(kapp->desktop())->setBackgroundColor( Qt::black ); |
| 199 |
} |
199 |
} |
| 200 |
state = Shutdown; |
200 |
state = Shutdown; |
|
Lines 234-240
Link Here
|
| 234 |
completeShutdownOrCheckpoint(); |
234 |
completeShutdownOrCheckpoint(); |
| 235 |
} |
235 |
} |
| 236 |
else { |
236 |
else { |
| 237 |
if (showFancyLogout) { |
237 |
if (showLogoutStatusDlg) { |
| 238 |
KSMShutdownIPFeedback::stop(); |
238 |
KSMShutdownIPFeedback::stop(); |
| 239 |
} |
239 |
} |
| 240 |
} |
240 |
} |
|
Lines 484-491
Link Here
|
| 484 |
if ( waitForPhase2 ) |
484 |
if ( waitForPhase2 ) |
| 485 |
return; |
485 |
return; |
| 486 |
|
486 |
|
| 487 |
bool showFancyLogout = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showFancyLogout", true); |
487 |
bool showLogoutStatusDlg = KConfigGroup(KGlobal::config(), "Logout").readBoolEntry("showLogoutStatusDlg", true); |
| 488 |
if (showFancyLogout) { |
488 |
if (showLogoutStatusDlg) { |
| 489 |
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user |
489 |
KSMShutdownIPFeedback::showit(); // hide the UGLY logout process from the user |
| 490 |
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP(); |
490 |
shutdownNotifierIPDlg = KSMShutdownIPDlg::showShutdownIP(); |
| 491 |
while (!KSMShutdownIPFeedback::ispainted()) { |
491 |
while (!KSMShutdownIPFeedback::ispainted()) { |