heh, there are always ways to make it break - I never thought of KCModules

in KCModules:
fix changed state handling

svn path=/trunk/kdebase/kwin/; revision=253186
This commit is contained in:
Matthias Kretz 2003-09-22 20:46:26 +00:00
parent 837263f963
commit d5fb3625b1
2 changed files with 11 additions and 0 deletions

View file

@ -118,6 +118,7 @@ void KWinOptions::load()
mActions->load();
mMoving->load();
mAdvanced->load();
setChanged( false );
}
@ -128,6 +129,7 @@ void KWinOptions::save()
mMoving->save();
mAdvanced->save();
setChanged( false );
// Send signal to kwin
mConfig->sync();
if ( !kapp->dcopClient()->isAttached() )

View file

@ -360,6 +360,7 @@ void KFocusConfig::load( void )
setTraverseAll( config->readBoolEntry(KWIN_TRAVERSE_ALL, false ));
config->setGroup("Desktops");
setChanged(false);
}
void KFocusConfig::save( void )
@ -414,6 +415,7 @@ void KFocusConfig::save( void )
kapp->dcopClient()->attach();
kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
}
setChanged(false);
}
void KFocusConfig::defaults()
@ -425,6 +427,7 @@ void KFocusConfig::defaults()
setTraverseAll( false );
setRollOverDesktops(true);
setShowPopupinfo(false);
setChanged(true);
}
KAdvancedConfig::~KAdvancedConfig ()
@ -545,6 +548,7 @@ void KAdvancedConfig::load( void )
setElectricBorders(config->readNumEntry(KWM_ELECTRIC_BORDER, false));
setElectricBorderDelay(config->readNumEntry(KWM_ELECTRIC_BORDER_DELAY, 150));
setChanged(false);
}
void KAdvancedConfig::save( void )
@ -572,6 +576,7 @@ void KAdvancedConfig::save( void )
kapp->dcopClient()->attach();
kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
}
setChanged(false);
}
void KAdvancedConfig::defaults()
@ -581,6 +586,7 @@ void KAdvancedConfig::defaults()
setShadeHoverInterval(250);
setElectricBorders(0);
setElectricBorderDelay(150);
setChanged(true);
}
void KAdvancedConfig::setEBorders()
@ -940,6 +946,7 @@ void KMovingConfig::load( void )
else setWindowSnapZone(v);
OverlapSnap->setChecked(config->readBoolEntry("SnapOnlyWhenOverlapping",false));
setChanged(false);
}
void KMovingConfig::save( void )
@ -999,6 +1006,7 @@ void KMovingConfig::save( void )
kapp->dcopClient()->attach();
kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
}
setChanged(false);
}
void KMovingConfig::defaults()
@ -1016,6 +1024,7 @@ void KMovingConfig::defaults()
setMinimizeAnim( true );
setMinimizeAnimSpeed( 5 );
setChanged(true);
}
int KMovingConfig::getBorderSnapZone() {