diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-16 01:11:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-16 01:11:33 +0000 |
commit | 037217ba8b879294a199df3846e47c52746d23cc (patch) | |
tree | 53585121053a0a9b746ee8b23316be34fd0c0392 /kdm/kfrontend/kgapp.cpp | |
parent | c1d059ab57cfcc43d0c6052fdb5e6782ce23dac5 (diff) | |
download | tdebase-037217ba8b879294a199df3846e47c52746d23cc.tar.gz tdebase-037217ba8b879294a199df3846e47c52746d23cc.zip |
Add preliminary SAK support to KDM
Unify the various system modal dialogs a bit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253872 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdm/kfrontend/kgapp.cpp')
-rw-r--r-- | kdm/kfrontend/kgapp.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kdm/kfrontend/kgapp.cpp b/kdm/kfrontend/kgapp.cpp index 0aaaa6e9b..ac99a4bc3 100644 --- a/kdm/kfrontend/kgapp.cpp +++ b/kdm/kfrontend/kgapp.cpp @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifdef XDMCP # include "kchooser.h" #endif +#include "sakdlg.h" #include <kprocess.h> #include <kcmdlineargs.h> @@ -65,6 +66,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. bool argb_visual_available = false; bool has_kwin = false; bool is_themed = false; +bool trinity_desktop_lock_use_sak = TRUE; static int ignoreXError( Display *dpy ATTR_UNUSED, XErrorEvent *event ATTR_UNUSED ) @@ -164,6 +166,15 @@ xIOErr( Display * ) //KSimpleConfig *iccconfig; void +checkSAK(GreeterApp* app) +{ + app->restoreOverrideCursor(); + SAKDlg sak(0); + sak.exec(); + app->setOverrideCursor( Qt::WaitCursor ); +} + +void kg_main( const char *argv0 ) { static char *argv[] = { (char *)"kdmgreet", 0 }; @@ -287,6 +298,8 @@ kg_main( const char *argv0 ) has_kwin = true; } + trinity_desktop_lock_use_sak = _useSAK; + GSendInt( G_Ready ); kdDebug() << timestamp() << " main1" << endl; @@ -338,6 +351,7 @@ kg_main( const char *argv0 ) if (!tgrt->isOK()) { is_themed = false; delete tgrt; + checkSAK(app); dialog = new KStdGreeter; dialog->move(dialog->x() + primaryScreenPosition.x(), dialog->y() + primaryScreenPosition.y()); } @@ -346,6 +360,7 @@ kg_main( const char *argv0 ) } XSetErrorHandler( (XErrorHandler)0 ); } else { + checkSAK(app); dialog = new KStdGreeter; dialog->move(dialog->x() + primaryScreenPosition.x(), dialog->y() + primaryScreenPosition.y()); } |