From af742de80c460e981037858b69829b503bbdedbe Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 16 Oct 2015 14:49:59 -0400 Subject: Convert the grid used for the desktop plugin system a little bit: 1) The "IconSize" used is the total size for a desktop item (width & height), rather than the actual size of the icon. 2) Change the saved value in the settings file to "GridSize" instead of IconSize. 3) Make the entire grid relate to this item size - ensuring grid alignment for both desktop items and desktop plugins. 4) Make sure to treat any manual "applauncher" plugins as desktop items for sizing/update purposes. 5) Save the plugin geometries in pixel coordinates instead of grid coordinates to accomodate for flexible grid sizes now. 6) Add another update rule for 0.8.6->0.8.7 (including 0.8.7-devel->0.8.7-release) which removed all the old saved desktop plugin geometries (since they are in the wrong coordinate system). This is a minor change because the update to 0.8.7 was already going to change all the plugins anyway. --- lumina-desktop/LSession.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lumina-desktop/LSession.cpp') diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 145ac992..cd78cce2 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -414,6 +414,10 @@ void LSession::checkUserFiles(){ } } dset.sync(); + //Due to the grid size change for desktop plugins, need to remove any old plugin geometries + if(QFile::exists(QDir::homePath()+"/.lumina/pluginsettings/desktopsettings.conf")){ + QFile::remove(QDir::homePath()+"/.lumina/pluginsettings/desktopsettings.conf"); + } } //Convert to the XDG autostart spec as necessary (Change occured with 0.8.5) -- cgit