[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/ksmserver
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-01-27 9:27:25
Message-ID: 20050127092725.7EF6F1BC1D () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

I prefer a test that does something


  M +1 -1      Makefile.am   1.24
  M +6 -7      test.cpp   1.6


--- kdebase/ksmserver/test.cpp  #1.5:1.6
@@ -3,4 +3,5 @@
 #include <kaboutdata.h>
 #include <kapplication.h>
+#include <kiconloader.h>
 
 int
@@ -11,14 +12,12 @@ main(int argc, char *argv[])
 
    KApplication a;
+   a.iconLoader()->addAppDir("ksmserver");
    KSMShutdownFeedback::start();
 
    KApplication::ShutdownType sdtype = KApplication::ShutdownTypeNone;
-   KApplication::ShutdownMode sdmode = KApplication::ShutdownModeSchedule;
-   (void)KSMShutdownDlg::confirmShutdown( false, false,
-                                          sdtype, sdmode );
-   (void)KSMShutdownDlg::confirmShutdown( true, false,
-                                          sdtype, sdmode );
-   (void)KSMShutdownDlg::confirmShutdown( true, true,
-                                          sdtype, sdmode );
+   (void)KSMShutdownDlg::confirmShutdown( true,
+                                          sdtype );
+/*   (void)KSMShutdownDlg::confirmShutdown( false,
+                                          sdtype ); */
 
    KSMShutdownFeedback::stop();

--- kdebase/ksmserver/Makefile.am  #1.23:1.24
@@ -43,5 +43,5 @@
 testsh_SOURCES = test.cpp
 testsh_LDFLAGS = $(all_libraries) $(KDE_RPATH)
-testsh_LDADD = $(LIB_KDEUI) shutdown.lo
+testsh_LDADD = $(LIB_KDEUI) shutdown.lo ../kdmlib/libdmctl.la
 
 messages:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic