There's really no need to have two dbus functions for reconfiguring.

svn path=/trunk/KDE/kdebase/workspace/; revision=768755
This commit is contained in:
Luboš Luňák 2008-01-30 15:31:44 +00:00
parent be632b0cba
commit 47bf19d978
12 changed files with 16 additions and 25 deletions

View file

@ -62,7 +62,7 @@ int main( int argc, char* argv[] )
dcg.sync(); dcg.sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }

View file

@ -178,6 +178,6 @@ int main()
dest_cfg.sync(); dest_cfg.sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }

View file

@ -323,7 +323,7 @@ void KWinCompositingConfig::configChanged()
// Send signal to kwin // Send signal to kwin
mKWinConfig->sync(); mKWinConfig->sync();
// Send signal to all kwin instances // 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); QDBusConnection::sessionBus().send(message);
} }

View file

@ -538,7 +538,7 @@ void KWinDecorationModule::save()
kwinConfig.sync(); kwinConfig.sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }

View file

@ -152,7 +152,7 @@ void KWinOptions::save()
mConfig->sync(); mConfig->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
@ -229,7 +229,7 @@ void KActionsOptions::save()
mConfig->sync(); mConfig->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }

View file

@ -585,7 +585,7 @@ void KTitleBarActionsConfig::save()
config->sync(); config->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }
@ -882,7 +882,7 @@ void KWindowActionsConfig::save()
config->sync(); config->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }
} }

View file

@ -526,7 +526,7 @@ void KFocusConfig::save( void )
config->sync(); config->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }
emit KCModule::changed(false); emit KCModule::changed(false);
@ -745,7 +745,7 @@ void KAdvancedConfig::save( void )
config->sync(); config->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }
@ -1143,7 +1143,7 @@ void KMovingConfig::save( void )
config->sync(); config->sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }
emit KCModule::changed(false); emit KCModule::changed(false);

View file

@ -71,7 +71,7 @@ void KCMRules::save()
config.sync(); config.sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
} }

View file

@ -257,7 +257,7 @@ static int edit( Window wid, bool whole_app )
saveRules( rules ); saveRules( rules );
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reconfigure");
QDBusConnection::sessionBus().send(message); QDBusConnection::sessionBus().send(message);
return 0; return 0;
} }

View file

@ -8,9 +8,6 @@
<method name="unclutterDesktop"> <method name="unclutterDesktop">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/> <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method> </method>
<method name="reconfigure">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method>
<method name="killWindow"> <method name="killWindow">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/> <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method> </method>
@ -33,7 +30,7 @@
<method name="nextDesktop"/> <method name="nextDesktop"/>
<method name="previousDesktop"/> <method name="previousDesktop"/>
<method name="circulateDesktopApplications"/> <method name="circulateDesktopApplications"/>
<signal name="reloadConfig"/> <signal name="reconfigure"/>
<signal name="reinitCompositing"/> <signal name="reinitCompositing"/>
<method name="loadEffect"> <method name="loadEffect">
<arg name="name" type="s" direction="in"/> <arg name="name" type="s" direction="in"/>

View file

@ -144,7 +144,7 @@ Workspace::Workspace( bool restore )
(void) new KWinAdaptor( this ); (void) new KWinAdaptor( this );
QDBusConnection dbus = QDBusConnection::sessionBus(); QDBusConnection dbus = QDBusConnection::sessionBus();
dbus.registerObject("/KWin", this); 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())); dbus.connect(QString(), "/KWin", "org.kde.KWin", "reinitCompositing", this, SLOT(slotReinitCompositing()));
_self = this; _self = this;
mgr = new PluginMgr; mgr = new PluginMgr;
@ -952,11 +952,6 @@ void Workspace::updateColormap()
} }
} }
void Workspace::slotReloadConfig()
{
reconfigure();
}
void Workspace::reconfigure() void Workspace::reconfigure()
{ {
reconfigureTimer.start( 200 ); reconfigureTimer.start( 200 );

View file

@ -138,7 +138,6 @@ class Workspace : public QObject, public KDecorationDefines
void raiseOrLowerClient( Client * ); void raiseOrLowerClient( Client * );
void restoreSessionStackingOrder( Client* c ); void restoreSessionStackingOrder( Client* c );
void restackUnmanaged( Unmanaged* c, Window above ); void restackUnmanaged( Unmanaged* c, Window above );
void reconfigure();
void forceRestacking(); void forceRestacking();
void clientHidden( Client* ); void clientHidden( Client* );
@ -473,7 +472,7 @@ class Workspace : public QObject, public KDecorationDefines
void cleanupTemporaryRules(); void cleanupTemporaryRules();
void writeWindowRules(); void writeWindowRules();
void slotBlockShortcuts(int data); void slotBlockShortcuts(int data);
void slotReloadConfig(); void reconfigure();
void setPopupClientOpacity( QAction* action ); void setPopupClientOpacity( QAction* action );
void setupCompositing(); void setupCompositing();
void performCompositing(); void performCompositing();