On Tuesday, December 7, 2010, Steven Sroka wrote:
> In kdebase/workspace/libs/plasmagenericshell/backgrounddialog.cpp, what
> happens in BackgroundDialog::saveConfig() specifically?
> 
> In general, I know that the wallpaper/mouse settings are saved and the last
> 'if' statement forces the wallpaper to change. But, what does the code
> above the last 'if' statement *specifically* do?

saveConfig() does the following:

* determine what the names of the wallpaper and containment plugins are (first 
three lines)

* if the containment plugin is changing (e.g. desktop -> folderview) then 
create the new containment, swap it with the current one (that includes 
ensuring the mouse actions and wallpaper go with it)

* save the settings of the wallpaper configuration (d->wallpaper is an 
instance of the wallpaper plugin in the dialog, not in the containment)

* have the containment re-load the wallpaper settings by calling setWallpaper 
(which has that side effect)

* reset the modified state (and therefore the Apply button, etc)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to