[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Desktop Slideshow Settings
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-12-08 18:34:41
Message-ID: 201012081034.42237.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic