~ubuntu-branches/ubuntu/hardy/kdebase-workspace/hardy-backports

« back to all changes in this revision

Viewing changes to kwin/effects/maketransparent_config.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2008-05-02 23:57:34 UTC
  • mfrom: (1.2.1 upstream) (20.1.22 hardy)
  • Revision ID: james.westby@ubuntu.com-20080502235734-kwrykz4qcvunwqf4
Tags: 4:4.0.4-0ubuntu1~hardy1
* New upstream release (LP: #225994)
* Updated control file (LP: #220655)
* Updated install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    KCModule::load();
79
79
 
80
80
    KConfigGroup conf = EffectsHandler::effectConfig("MakeTransparent");
81
 
    mDecoration->setValue( (int)( conf.readEntry( "Decoration", 0.7 ) * 100 ) );
 
81
    mDecoration->setValue( (int)( conf.readEntry( "Decoration", 1.0 ) * 100 ) );
82
82
    mMoveResize->setValue( (int)( conf.readEntry( "MoveResize", 0.8 ) * 100 ) );
83
83
    mDialogs->setValue( (int)( conf.readEntry( "Dialogs", 1.0 ) * 100 ) );
84
84
 
97
97
    conf.sync();
98
98
 
99
99
    emit changed(false);
100
 
    EffectsHandler::sendReloadMessage( "translucentdecorations" );
 
100
    EffectsHandler::sendReloadMessage( "maketransparent" );
101
101
    }
102
102
 
103
103
void MakeTransparentEffectConfig::defaults()
104
104
    {
105
105
    kDebug() ;
106
 
    mDecoration->setValue( 70 );
 
106
    mDecoration->setValue( 100 );
107
107
    mMoveResize->setValue( 80 );
108
108
    mDialogs->setValue( 100 );
109
109
    emit changed(true);