File knemod.sys-def.diff of Package kde3-knemo

diff -uNr knemo.orig/src/kcm/configdialog.cpp knemo/src/kcm/configdialog.cpp
--- knemo.orig/src/kcm/configdialog.cpp	2012-04-14 02:14:14.000000000 -0500
+++ knemo/src/kcm/configdialog.cpp	2012-04-17 23:38:44.627171353 -0500
@@ -69,11 +69,11 @@
     : KCModule( KNemoFactory::instance(), parent, name ),
       mLock( false ),
       mDlg( new ConfigDlg( this ) ),
-      mColorVLines( 0x04FB1D ),
-      mColorHLines( 0x04FB1D ),
-      mColorIncoming( 0x1889FF ),
+      mColorVLines( 0x101726 ),
+      mColorHLines( 0x30394C ),
+      mColorIncoming( 0x556FFF ),
       mColorOutgoing( 0xFF7F08 ),
-      mColorBackground( 0x313031 )
+      mColorBackground( 0x090D14 )
 {
     KGlobal::locale()->insertCatalogue("kcm_knemo");
     setupToolTipArray();
@@ -268,8 +268,9 @@
     mToolTipContent = config->readNumEntry( "ToolTipContent", 2 );
 
     // select the backend from the config file
+    // set default backend to Sys (kernels >= 2.6)
     bool foundBackend = false;
-    QString backend = config->readEntry( "Backend", "Nettools" );
+    QString backend = config->readEntry( "Backend", "Sys" );
     int i;
     for ( i = 0; KCMRegistry[i].name != QString::null; i++ )
     {
@@ -282,7 +283,8 @@
 
     if ( !foundBackend )
     {
-        i = 0; // use the first backend (Nettools)
+        i = 1; // use the second backend ('Sys' as default kernel >=2.6 )
+
     }
     mDlg->comboBoxBackends->setCurrentItem( i );
     mDlg->textLabelBackendDescription->setText( KCMRegistry[i].description );
@@ -494,8 +496,8 @@
     mDlg->numInputPollInterval->setValue( 1 );
     mDlg->numInputSaveInterval->setValue( 60 );
     mDlg->lineEditStatisticsDir->setText( KGlobal::dirs()->saveLocation( "data", "knemo/" ) );
-    mDlg->comboBoxBackends->setCurrentItem( 0 );
-    mDlg->textLabelBackendDescription->setText( KCMRegistry[0].description );
+    mDlg->comboBoxBackends->setCurrentItem( 1 );
+    mDlg->textLabelBackendDescription->setText( KCMRegistry[1].description );
 
     // Default tool tips
     mToolTipContent = 2;
diff -uNr knemo.orig/src/knemod/knemodaemon.cpp knemo/src/knemod/knemodaemon.cpp
--- knemo.orig/src/knemod/knemodaemon.cpp	2012-02-08 18:04:27.000000000 -0600
+++ knemo/src/knemod/knemodaemon.cpp	2012-04-18 00:01:59.532147406 -0500
@@ -44,11 +44,11 @@
 
 KNemoDaemon::KNemoDaemon( const QCString& name )
     : KDEDModule( name ),
-      mColorVLines( 0x04FB1D ),
-      mColorHLines( 0x04FB1D ),
-      mColorIncoming( 0x1889FF ),
+      mColorVLines( 0x101726 ),
+      mColorHLines( 0x30394C ),
+      mColorIncoming( 0x556FFF ),
       mColorOutgoing( 0xFF7F08 ),
-      mColorBackground( 0x313031 ),
+      mColorBackground( 0x090D14 ),
       mInstance( new KInstance( "knemo" ) ),
       mNotifyInstance( new KNotifyClient::Instance( mInstance ) )
 {
@@ -58,7 +58,7 @@
     // select the backend from the config file
     KConfig* config = new KConfig( "knemorc", true );
     config->setGroup( "General" );
-    mBackendName = config->readEntry( "Backend", "Nettools" );
+    mBackendName = config->readEntry( "Backend", "Sys" );
     delete config;
 
     bool foundBackend = false;
@@ -74,7 +74,7 @@
 
     if ( !foundBackend )
     {
-        i = 0; // use the first backend (Nettools)
+        i = 1; // use the second backend ('Sys' as default kernel >=2.6 )
     }
     mBackend = ( *DaemonRegistry[i].function )( mInterfaceDict );
 

openSUSE Build Service is sponsored by