From 47bf19d978bc28aad2b4d5439478bf24dd6b9ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 30 Jan 2008 15:31:44 +0000 Subject: [PATCH] There's really no need to have two dbus functions for reconfiguring. svn path=/trunk/KDE/kdebase/workspace/; revision=768755 --- data/update_default_rules.cpp | 2 +- data/update_window_settings.cpp | 2 +- kcmkwin/kwincompositing/main.cpp | 2 +- kcmkwin/kwindecoration/kwindecoration.cpp | 2 +- kcmkwin/kwinoptions/main.cpp | 4 ++-- kcmkwin/kwinoptions/mouse.cpp | 4 ++-- kcmkwin/kwinoptions/windows.cpp | 6 +++--- kcmkwin/kwinrules/kcm.cpp | 2 +- kcmkwin/kwinrules/main.cpp | 2 +- org.kde.KWin.xml | 5 +---- workspace.cpp | 7 +------ workspace.h | 3 +-- 12 files changed, 16 insertions(+), 25 deletions(-) diff --git a/data/update_default_rules.cpp b/data/update_default_rules.cpp index 15353100d8..38200a71ca 100644 --- a/data/update_default_rules.cpp +++ b/data/update_default_rules.cpp @@ -62,7 +62,7 @@ int main( int argc, char* argv[] ) dcg.sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/data/update_window_settings.cpp b/data/update_window_settings.cpp index da09d9e033..ff4cbadf1a 100644 --- a/data/update_window_settings.cpp +++ b/data/update_window_settings.cpp @@ -178,6 +178,6 @@ int main() dest_cfg.sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index da70c67b71..f807a9362f 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -323,7 +323,7 @@ void KWinCompositingConfig::configChanged() // Send signal to kwin mKWinConfig->sync(); // Send signal to all kwin instances - QDBusMessage message = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage message = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 3794157837..c0209a5359 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -538,7 +538,7 @@ void KWinDecorationModule::save() kwinConfig.sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/kcmkwin/kwinoptions/main.cpp b/kcmkwin/kwinoptions/main.cpp index d7edce1666..bde8bfc97e 100644 --- a/kcmkwin/kwinoptions/main.cpp +++ b/kcmkwin/kwinoptions/main.cpp @@ -152,7 +152,7 @@ void KWinOptions::save() mConfig->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); @@ -229,7 +229,7 @@ void KActionsOptions::save() mConfig->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/kcmkwin/kwinoptions/mouse.cpp b/kcmkwin/kwinoptions/mouse.cpp index 6518d765a1..f1adc9f891 100644 --- a/kcmkwin/kwinoptions/mouse.cpp +++ b/kcmkwin/kwinoptions/mouse.cpp @@ -585,7 +585,7 @@ void KTitleBarActionsConfig::save() config->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } @@ -882,7 +882,7 @@ void KWindowActionsConfig::save() config->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } } diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 4e8417e032..5e21d59845 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -526,7 +526,7 @@ void KFocusConfig::save( void ) config->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } emit KCModule::changed(false); @@ -745,7 +745,7 @@ void KAdvancedConfig::save( void ) config->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } @@ -1143,7 +1143,7 @@ void KMovingConfig::save( void ) config->sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } emit KCModule::changed(false); diff --git a/kcmkwin/kwinrules/kcm.cpp b/kcmkwin/kwinrules/kcm.cpp index 832f1cb5a1..7f57488f4e 100644 --- a/kcmkwin/kwinrules/kcm.cpp +++ b/kcmkwin/kwinrules/kcm.cpp @@ -71,7 +71,7 @@ void KCMRules::save() config.sync(); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); } diff --git a/kcmkwin/kwinrules/main.cpp b/kcmkwin/kwinrules/main.cpp index 24c3833ad2..58b0fa9d56 100644 --- a/kcmkwin/kwinrules/main.cpp +++ b/kcmkwin/kwinrules/main.cpp @@ -257,7 +257,7 @@ static int edit( Window wid, bool whole_app ) saveRules( rules ); // Send signal to all kwin instances QDBusMessage message = - QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); + QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure"); QDBusConnection::sessionBus().send(message); return 0; } diff --git a/org.kde.KWin.xml b/org.kde.KWin.xml index 8b5c968d8c..20d9def8f0 100644 --- a/org.kde.KWin.xml +++ b/org.kde.KWin.xml @@ -8,9 +8,6 @@ - - - @@ -33,7 +30,7 @@ - + diff --git a/workspace.cpp b/workspace.cpp index e4b5a5734f..52e937b081 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -144,7 +144,7 @@ Workspace::Workspace( bool restore ) (void) new KWinAdaptor( this ); QDBusConnection dbus = QDBusConnection::sessionBus(); dbus.registerObject("/KWin", this); - dbus.connect(QString(), "/KWin", "org.kde.KWin", "reloadConfig", this, SLOT(slotReloadConfig())); + dbus.connect(QString(), "/KWin", "org.kde.KWin", "reconfigure", this, SLOT(reconfigure())); dbus.connect(QString(), "/KWin", "org.kde.KWin", "reinitCompositing", this, SLOT(slotReinitCompositing())); _self = this; mgr = new PluginMgr; @@ -952,11 +952,6 @@ void Workspace::updateColormap() } } -void Workspace::slotReloadConfig() -{ - reconfigure(); -} - void Workspace::reconfigure() { reconfigureTimer.start( 200 ); diff --git a/workspace.h b/workspace.h index 25ee03296f..3f14f36a75 100644 --- a/workspace.h +++ b/workspace.h @@ -138,7 +138,6 @@ class Workspace : public QObject, public KDecorationDefines void raiseOrLowerClient( Client * ); void restoreSessionStackingOrder( Client* c ); void restackUnmanaged( Unmanaged* c, Window above ); - void reconfigure(); void forceRestacking(); void clientHidden( Client* ); @@ -473,7 +472,7 @@ class Workspace : public QObject, public KDecorationDefines void cleanupTemporaryRules(); void writeWindowRules(); void slotBlockShortcuts(int data); - void slotReloadConfig(); + void reconfigure(); void setPopupClientOpacity( QAction* action ); void setupCompositing(); void performCompositing();