From 10aa0b0ffb77023f3828486aeefcdfbf91cca7b7 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 30 Oct 2014 14:29:32 -0400 Subject: Large quality of life update to Lumina: 1) Fix up the applauncher desktop plugins so that the initial sizing is sane. 2) Completely remove all global static variables from the session. 3) Re-enable the login/logout chimes (works properly without static variables) 4) Streamline the desktop background rotation algorithms a bit. 5) Greatly streamline the Session start procedure (50% to 75% faster on my computer here) 6) Make sure the background wallpaper does not rotate every time the desktop settings file changes (only when the backgrounds for that desktop are changed, or the rotation timer goes off) --- lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp | 2 +- lumina-desktop/panel-plugins/userbutton/UserWidget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lumina-desktop/panel-plugins') diff --git a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp index 6314a9eb..787ad0f0 100644 --- a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp +++ b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp @@ -158,5 +158,5 @@ QString LSysMenuQuick::getRemainingTime(){ void LSysMenuQuick::startLogout(){ emit CloseMenu(); - LSession::systemWindow(); + LSession::handle()->systemWindow(); } diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp index ef5f271c..4c2f00d9 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp @@ -13,7 +13,7 @@ UserWidget::UserWidget(QWidget* parent) : QTabWidget(parent), ui(new Ui::UserWid ui->setupUi(this); if(parent!=0){ parent->setMouseTracking(true); } this->setMouseTracking(true); - sysapps = LSession::applicationMenu()->currentAppHash(); //get the raw info + sysapps = LSession::handle()->applicationMenu()->currentAppHash(); //get the raw info //Setup the Icons // - favorites tab this->setTabIcon(0, rotateIcon(LXDG::findIcon("favorites","")) ); @@ -125,7 +125,7 @@ void UserWidget::UpdateMenu(){ updateFavItems(); ui->label_home_dir->setWhatsThis(QDir::homePath()); updateHome(); - if(lastUpdate < LSession::applicationMenu()->lastHashUpdate || lastUpdate.isNull()){ + if(lastUpdate < LSession::handle()->applicationMenu()->lastHashUpdate || lastUpdate.isNull()){ updateAppCategories(); updateApps(); } -- cgit