From 41a32a042b94d75986e283bea89b5cf5d37ed2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 3 Apr 2007 13:44:47 +0000 Subject: [PATCH] Electric borders are not a bool setting. svn path=/branches/work/kwin_composite/; revision=649954 --- kcmkwin/kwinoptions/windows.cpp | 38 ++++++++++++--------------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 8f2d80787e..7e65ea0ae5 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -39,7 +39,6 @@ #include #include -#include #include #include #include @@ -57,6 +56,7 @@ #include "windows.h" + // kwin config keywords #define KWIN_FOCUS "FocusPolicy" #define KWIN_PLACEMENT "Placement" @@ -433,6 +433,7 @@ void KFocusConfig::load( void ) setTraverseAll( config->group("TabBox").readEntry(KWIN_TRAVERSE_ALL, false)); + config->setGroup("Desktops"); emit KCModule::changed(false); } @@ -486,13 +487,13 @@ void KFocusConfig::save( void ) config->group("TabBox").writeEntry( KWIN_TRAVERSE_ALL , traverseAll->isChecked()); + config->setGroup("Desktops"); + if (standAlone) { config->sync(); - // Send signal to all kwin instances - QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); - QDBusConnection::sessionBus().send(message); + QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" ); + kwin.call( "reconfigure" ); } emit KCModule::changed(false); } @@ -718,11 +719,8 @@ void KAdvancedConfig::save( void ) if (standAlone) { config->sync(); - // Send signal to all kwin instances - QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); - QDBusConnection::sessionBus().send(message); - + QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" ); + kwin.call( "reconfigure" ); } emit KCModule::changed(false); } @@ -1185,10 +1183,8 @@ void KMovingConfig::save( void ) if (standAlone) { config->sync(); - // Send signal to all kwin instances - QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); - QDBusConnection::sessionBus().send(message); + QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" ); + kwin.call( "reconfigure" ); } emit KCModule::changed(false); } @@ -1254,8 +1250,6 @@ KTranslucencyConfig::KTranslucencyConfig (bool _standAlone, KConfig *_config, co "And if your GPU provides hardware-accelerated Xrender support (mainly nVidia cards):

" "Option \"RenderAccel\" \"true\"
" "In Section \"Device\""), this); - label->setOpenExternalLinks(true); - label->setTextInteractionFlags(Qt::LinksAccessibleByMouse); lay->addWidget(label); } else @@ -1476,9 +1470,9 @@ void KTranslucencyConfig::load( void ) if (!kompmgrAvailable_) return; - useTranslucency->setChecked(config->group("Notification Messages").readEntry("UseTranslucency", false)); KConfigGroup translucencyConfig(config, "Translucency"); + useTranslucency->setChecked(translucencyConfig.readEntry("UseTranslucency", false)); activeWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentActiveWindows", false)); inactiveWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentInactiveWindows", true)); movingWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentMovingWindows", false)); @@ -1540,9 +1534,8 @@ void KTranslucencyConfig::save( void ) { if (!kompmgrAvailable_) return; - config->group("Notification Messages").writeEntry("UseTranslucency",useTranslucency->isChecked()); - KConfigGroup translucencyConfig(config, "Translucency"); + translucencyConfig.writeEntry("UseTranslucency",useTranslucency->isChecked()); translucencyConfig.writeEntry("TranslucentActiveWindows",activeWindowTransparency->isChecked()); translucencyConfig.writeEntry("TranslucentInactiveWindows",inactiveWindowTransparency->isChecked()); translucencyConfig.writeEntry("TranslucentMovingWindows",movingWindowTransparency->isChecked()); @@ -1592,11 +1585,8 @@ void KTranslucencyConfig::save( void ) if (standAlone) { config->sync(); - // Send signal to all kwin instances - QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); - QDBusConnection::sessionBus().send(message); - + QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" ); + kwin.call( "reconfigure" ); } emit KCModule::changed(false); }