- Make KApp's "appearanceChanged()" signal properly reconfigure the window

decoration's colors by calling the reset() cdecl.
- Change the options::reload() slot into a public method, as the slot is no
  longer required.

Reviewed by Matthias Elter

svn path=/trunk/kdebase/kwin/; revision=143232
This commit is contained in:
Karol Szwed 2002-03-16 09:26:49 +00:00
parent c7659304f7
commit e9b984e3f8
3 changed files with 3 additions and 10 deletions

View file

@ -45,8 +45,6 @@ Options::Options()
for(i=0; i < KWINCOLORS*2; ++i) for(i=0; i < KWINCOLORS*2; ++i)
cg[i] = NULL; cg[i] = NULL;
reload(); reload();
connect( kapp, SIGNAL( appearanceChanged() ), this, SLOT(reload() ) );
} }
Options::~Options(){ Options::~Options(){

View file

@ -320,6 +320,8 @@ public:
*/ */
int electricBorderDelay(); int electricBorderDelay();
void reload();
signals: signals:
/** /**
* Emitted when KWin is asked to reconfigure itself. * Emitted when KWin is asked to reconfigure itself.
@ -330,17 +332,10 @@ signals:
*/ */
void resetClients(); void resetClients();
public slots:
void reload();
protected: protected:
QFont activeFont, inactiveFont, activeFontSmall, inactiveFontSmall; QFont activeFont, inactiveFont, activeFontSmall, inactiveFontSmall;
private: private:
WindowOperation OpTitlebarDblClick; WindowOperation OpTitlebarDblClick;
// mouse bindings // mouse bindings

View file

@ -417,7 +417,7 @@ void Workspace::init()
connect(mgr, SIGNAL(resetAllClients()), this, connect(mgr, SIGNAL(resetAllClients()), this,
SLOT(slotResetAllClients())); SLOT(slotResetAllClients()));
connect(kapp, SIGNAL(appearanceChanged()), this, connect(kapp, SIGNAL(appearanceChanged()), this,
SLOT(slotResetAllClientsDelayed())); SLOT(slotReconfigure()));
connect(kapp, SIGNAL(settingsChanged(int)), this, connect(kapp, SIGNAL(settingsChanged(int)), this,
SLOT(slotSettingsChanged(int))); SLOT(slotSettingsChanged(int)));