Fix kdesktop_lock secure dialog

Minor whitespace cleanup and warning fixes
(cherry picked from commit 50739c9ba4)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent a3dd6c9dcd
commit c47b417bbb

@ -207,7 +207,7 @@
<label>Device Types to exclude</label> <label>Device Types to exclude</label>
<whatsthis>The device types which you do not want to see on the desktop.</whatsthis> <whatsthis>The device types which you do not want to see on the desktop.</whatsthis>
<!-- kdiconview.cc:261 --> <!-- kdiconview.cc:261 -->
<!-- QString tmpList=config->readEntry("exclude","media/hdd_mounted,media/hdd_unmounted,media/floppy_unmounted,media/cdrom_unmounted,media/floppy5_unmounted"); --> <!-- TQString tmpList=config->readEntry("exclude","media/hdd_mounted,media/hdd_unmounted,media/floppy_unmounted,media/cdrom_unmounted,media/floppy5_unmounted"); -->
</entry> </entry>
</group> </group>
<group name="KDE"> <group name="KDE">
@ -353,7 +353,7 @@
<label></label> <label></label>
<whatsthis></whatsthis> <whatsthis></whatsthis>
<!-- minicli.cpp:191 --> <!-- minicli.cpp:191 -->
<!-- QStringList histList = config->readPathListEntry("History"); --> <!-- TQStringList histList = config->readPathListEntry("History"); -->
<!-- minicli.cpp:242 --> <!-- minicli.cpp:242 -->
<!-- config->writePathEntry( "History", m_dlg->cbCommand->historyItems() ); --> <!-- config->writePathEntry( "History", m_dlg->cbCommand->historyItems() ); -->
</entry> </entry>
@ -406,7 +406,7 @@
<label></label> <label></label>
<whatsthis></whatsthis> <whatsthis></whatsthis>
<!-- minicli.cpp:204 --> <!-- minicli.cpp:204 -->
<!-- QStringList compList = config->readPathListEntry("CompletionItems"); --> <!-- TQStringList compList = config->readPathListEntry("CompletionItems"); -->
<!-- minicli.cpp:244 --> <!-- minicli.cpp:244 -->
<!-- config->writePathEntry( "CompletionItems", m_dlg->cbCommand->completionObject()->items() ); --> <!-- config->writePathEntry( "CompletionItems", m_dlg->cbCommand->completionObject()->items() ); -->
</entry> </entry>

@ -1560,8 +1560,9 @@ void KDIconView::updateWorkArea( const TQRect &wr )
kdDebug(1204) << " oldArea: " << oldArea.x() << "," << oldArea.y() kdDebug(1204) << " oldArea: " << oldArea.x() << "," << oldArea.y()
<< " " << oldArea.width() << "x" << oldArea.height() << endl; << " " << oldArea.width() << "x" << oldArea.height() << endl;
if ( m_autoAlign ) if ( m_autoAlign ) {
int dummy = 0; //lineupIcons(); //lineupIcons();
}
else { else {
bool needRepaint = false; bool needRepaint = false;
TQIconViewItem* item; TQIconViewItem* item;

@ -245,7 +245,7 @@ void KRootWm::initConfig()
// Read configuration for icons alignment // Read configuration for icons alignment
if ( m_bDesktopEnabled ) { if ( m_bDesktopEnabled ) {
bool startup = true; m_pDesktop->iconView()->setAutoAlign( KDesktopSettings::autoLineUpIcons() ); m_pDesktop->iconView()->setAutoAlign( KDesktopSettings::autoLineUpIcons() );
if ( kapp->authorize( "editable_desktop_icons" ) ) { if ( kapp->authorize( "editable_desktop_icons" ) ) {
m_pDesktop->iconView()->setItemsMovable( !KDesktopSettings::lockIcons() ); m_pDesktop->iconView()->setItemsMovable( !KDesktopSettings::lockIcons() );
KToggleAction *aLockIcons = static_cast<KToggleAction*>(m_actionCollection->action("lock_icons")); KToggleAction *aLockIcons = static_cast<KToggleAction*>(m_actionCollection->action("lock_icons"));

@ -658,6 +658,10 @@ void LockProcess::startSecureDialog()
mBusy = true; mBusy = true;
execDialog( &inDlg ); execDialog( &inDlg );
mBusy = false; mBusy = false;
bool forcecontdisp = mForceContinualLockDisplayTimer->isActive();
if (forcecontdisp) {
DISABLE_CONTINUOUS_LOCKDLG_DISPLAY
}
trinity_desktop_lock_in_sec_dlg = false; trinity_desktop_lock_in_sec_dlg = false;
if (ret == 0) { if (ret == 0) {
kapp->quit(); kapp->quit();
@ -690,6 +694,9 @@ void LockProcess::startSecureDialog()
} }
// FIXME // FIXME
// Handle remaining two cases (logoff menu and switch user) // Handle remaining two cases (logoff menu and switch user)
if (forcecontdisp) {
ENABLE_CONTINUOUS_LOCKDLG_DISPLAY
}
stopSaver(); stopSaver();
} }
@ -1495,7 +1502,10 @@ void LockProcess::hackExited(KProcess *)
void LockProcess::displayLockDialogIfNeeded() void LockProcess::displayLockDialogIfNeeded()
{ {
if (m_startupStatusDialog) { m_startupStatusDialog->closeSMDialog(); m_startupStatusDialog=NULL; } if (m_startupStatusDialog) {
m_startupStatusDialog->closeSMDialog(); m_startupStatusDialog=NULL;
}
if (!trinity_desktop_lock_in_sec_dlg) {
if (trinity_desktop_lock_use_system_modal_dialogs) { if (trinity_desktop_lock_use_system_modal_dialogs) {
if (!mBusy) { if (!mBusy) {
mBusy = true; mBusy = true;
@ -1508,6 +1518,7 @@ void LockProcess::displayLockDialogIfNeeded()
mBusy = false; mBusy = false;
} }
} }
}
} }
void LockProcess::suspend() void LockProcess::suspend()

@ -252,19 +252,21 @@ int main( int argc, char **argv )
} }
} }
if (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE)) if (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE)) {
trinity_desktop_lock_forced = TRUE; trinity_desktop_lock_forced = TRUE;
}
LockProcess process(child, (args->isSet( "blank" ) || (signalled_blank == TRUE))); LockProcess process(child, (args->isSet( "blank" ) || (signalled_blank == TRUE)));
if (!child) if (!child) {
process.setChildren(child_sockets); process.setChildren(child_sockets);
else }
else {
process.setParent(parent_connection); process.setParent(parent_connection);
}
bool rt; bool rt;
bool sig = false; bool sig = false;
if( !child && (args->isSet( "forcelock" ) || (signalled_forcelock == TRUE))) if( (!child && (args->isSet( "forcelock" )) || (signalled_forcelock == TRUE))) {
{
rt = process.lock(); rt = process.lock();
sig = true; sig = true;
} }

Loading…
Cancel
Save