diff options
Diffstat (limited to 'kscreensaver')
-rw-r--r-- | kscreensaver/blankscrn.cpp | 6 | ||||
-rw-r--r-- | kscreensaver/random.cpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/kscreensaver/blankscrn.cpp b/kscreensaver/blankscrn.cpp index 1f57726b2..10d4c18d4 100644 --- a/kscreensaver/blankscrn.cpp +++ b/kscreensaver/blankscrn.cpp @@ -75,7 +75,7 @@ KBlankSetup::KBlankSetup( TQWidget *parent, const char *name ) // read settings from config file void KBlankSetup::readSettings() { - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup( "Settings" ); color = config->readColorEntry( "Color", &black ); @@ -90,7 +90,7 @@ void KBlankSetup::slotColor( const TQColor &col ) // Ok pressed - save settings and exit void KBlankSetup::slotOk() { - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup( "Settings" ); config->writeEntry( "Color", color ); config->sync(); @@ -121,7 +121,7 @@ void KBlankSaver::setColor( const TQColor &col ) // read configuration settings from config file void KBlankSaver::readSettings() { - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup( "Settings" ); color = config->readColorEntry( "Color", &black ); diff --git a/kscreensaver/random.cpp b/kscreensaver/random.cpp index dd8390226..3f9e69479 100644 --- a/kscreensaver/random.cpp +++ b/kscreensaver/random.cpp @@ -128,13 +128,13 @@ int main(int argc, char *argv[]) windowId = RootWindow(tqt_xdisplay(), tqt_xscreen()); } - KGlobal::dirs()->addResourceType("scrsav", - KGlobal::dirs()->kde_default("apps") + + TDEGlobal::dirs()->addResourceType("scrsav", + TDEGlobal::dirs()->kde_default("apps") + "apps/ScreenSavers/"); - KGlobal::dirs()->addResourceType("scrsav", - KGlobal::dirs()->kde_default("apps") + + TDEGlobal::dirs()->addResourceType("scrsav", + TDEGlobal::dirs()->kde_default("apps") + "System/ScreenSavers/"); - TQStringList tempSaverFileList = KGlobal::dirs()->findAllResources("scrsav", + TQStringList tempSaverFileList = TDEGlobal::dirs()->findAllResources("scrsav", "*.desktop", false, true); TQStringList saverFileList; |