Merge changes from debian/sid.

ubuntu/bionic
Simon Quigley 7 years ago
commit 6f596ec5a1

19
debian/changelog vendored

@ -1,3 +1,22 @@
lxqt-qtplugin (0.12.0-6) unstable; urgency=medium
* Backported lxqtplatformtheme-follow-color-scheme.patch
* Fixed wrong group in VCS fields
* Removed some trailing whitespaces from d/changelog
-- Alf Gaida <agaida@siduction.org> Wed, 14 Feb 2018 22:42:02 +0100
lxqt-qtplugin (0.12.0-5) unstable; urgency=medium
* Backported colorize-at-start patch
* Bumped debhelper to >= 11
* Bumped Standards to 4.1.3, no changes needed
* Changed VCS fields for salsa
* Bumped compat to 11
* Bumped years in copyright
-- Alf Gaida <agaida@siduction.org> Mon, 12 Feb 2018 19:52:16 +0100
lxqt-qtplugin (0.12.0-4ubuntu1) bionic; urgency=medium lxqt-qtplugin (0.12.0-4ubuntu1) bionic; urgency=medium
* Cherry-pick an upstream commit because the upstream release cycle is too * Cherry-pick an upstream commit because the upstream release cycle is too

2
debian/compat vendored

@ -1 +1 @@
10 11

8
debian/control vendored

@ -6,7 +6,7 @@ Uploaders: Alf Gaida <agaida@siduction.org>,
Yukiharu YABUKI <yyabuki@debian.org> Yukiharu YABUKI <yyabuki@debian.org>
Section: x11 Section: x11
Priority: optional Priority: optional
Build-Depends: debhelper (>= 10), Build-Depends: debhelper (>= 11),
libdbusmenu-qt5-dev, libdbusmenu-qt5-dev,
libfm-qt-dev (>= 0.12.0), libfm-qt-dev (>= 0.12.0),
libkf5windowsystem-dev, libkf5windowsystem-dev,
@ -15,9 +15,9 @@ Build-Depends: debhelper (>= 10),
libx11-dev, libx11-dev,
lxqt-build-tools (>= 0.4.0), lxqt-build-tools (>= 0.4.0),
qtbase5-private-dev qtbase5-private-dev
Standards-Version: 4.1.2 Standards-Version: 4.1.3
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-lxqt/lxqt-qtplugin.git Vcs-Browser: https://salsa.debian.org/lxqt-team/lxqt-qtplugin
Vcs-Git: https://anonscm.debian.org/git/pkg-lxqt/lxqt-qtplugin.git Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-qtplugin
Homepage: https://github.com/lxde/lxqt-qtplugin Homepage: https://github.com/lxde/lxqt-qtplugin
Package: lxqt-qtplugin Package: lxqt-qtplugin

4
debian/copyright vendored

@ -3,12 +3,12 @@ Upstream-Name: lxqt-qtplugin
Source: https://github.com/lxde/lxqt-qtplugin Source: https://github.com/lxde/lxqt-qtplugin
Files: * Files: *
Copyright: 2013-2017 LXQt team Copyright: 2013-2018 LXQt team
2010-2012 Razor team 2010-2012 Razor team
License: LGPL-2.1+ License: LGPL-2.1+
Files: debian/* Files: debian/*
Copyright: 2014-2017 Alf Gaida <agaida@siduction.org> Copyright: 2014-2018 Alf Gaida <agaida@siduction.org>
2015 ChangZhuo Chen (陳昌倬) <czchen@debian.org> 2015 ChangZhuo Chen (陳昌倬) <czchen@debian.org>
2015 Yukiharu YABUKI <yyabuki@debian.org> 2015 Yukiharu YABUKI <yyabuki@debian.org>
License: LGPL-2.1+ License: LGPL-2.1+

@ -0,0 +1,20 @@
commit 2283f5ee3c344fc62a74e41a127e3eee53fb2c37
Author: Tsu Jan <tsujan2000@gmail.com>
Date: Mon Feb 12 13:10:02 2018 +0330
Fix icon colorizing at startup
Fixes https://github.com/lxde/lxqt/issues/1445.
diff --git a/src/lxqtplatformtheme.cpp b/src/lxqtplatformtheme.cpp
index 83786f0..8291eab 100644
--- a/src/lxqtplatformtheme.cpp
+++ b/src/lxqtplatformtheme.cpp
@@ -315,6 +315,7 @@ QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const {
QIconEngine *LXQtPlatformTheme::createIconEngine(const QString &iconName) const
{
+ XdgIconLoader::instance()->setFollowColorScheme(iconFollowColorScheme_);
return new XdgIconLoaderEngine(iconName);
}

@ -0,0 +1,80 @@
From c78433c32c327d09507976a7b5cecff87c224252 Mon Sep 17 00:00:00 2001
From: Palo Kisa <palo.kisa@gmail.com>
Date: Tue, 13 Feb 2018 10:01:10 +0100
Subject: [PATCH] lxqtplatformtheme: Initialize "folowColorScheme" once
---
src/lxqtplatformtheme.cpp | 18 +++++++++++++-----
src/lxqtplatformtheme.h | 4 +++-
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/lxqtplatformtheme.cpp b/src/lxqtplatformtheme.cpp
index 8291eab..467cf07 100644
--- a/src/lxqtplatformtheme.cpp
+++ b/src/lxqtplatformtheme.cpp
@@ -52,13 +52,20 @@ LXQtPlatformTheme::LXQtPlatformTheme():
iconFollowColorScheme_(true)
, settingsWatcher_(NULL)
{
- // When the plugin is loaded, it seems that the app is not yet running and
+ loadSettings();
+ // Note: When the plugin is loaded, it seems that the app is not yet running and
// QThread environment is not completely set up. So creating filesystem watcher
// does not work since it uses QSocketNotifier internally which can only be
// created within QThread thread. So let's schedule a idle handler to initialize
// the watcher in the main event loop.
- loadSettings();
- QTimer::singleShot(0, this, SLOT(initWatch()));
+
+ // Note2: the QTimer::singleShot with also needs a QThread environment
+ // (there is a workaround in qtcore for the 0-timer with the old SLOT notation)
+
+ // TODO: use the "PointerToMemberFunction" overloads of invokeMethod(), but they
+ // are available from Qt v5.10
+ //QMetaObject::ivokeMethod(this, &LXQtPlatformTheme::lazyInit, Qt::QueuedConnection);
+ QMetaObject::invokeMethod(this, "lazyInit", Qt::QueuedConnection);
}
LXQtPlatformTheme::~LXQtPlatformTheme() {
@@ -66,11 +73,13 @@ LXQtPlatformTheme::~LXQtPlatformTheme() {
delete settingsWatcher_;
}
-void LXQtPlatformTheme::initWatch()
+void LXQtPlatformTheme::lazyInit()
{
settingsWatcher_ = new QFileSystemWatcher();
settingsWatcher_->addPath(settingsFile_);
connect(settingsWatcher_, &QFileSystemWatcher::fileChanged, this, &LXQtPlatformTheme::onSettingsChanged);
+
+ XdgIconLoader::instance()->setFollowColorScheme(iconFollowColorScheme_);
}
void LXQtPlatformTheme::loadSettings() {
@@ -315,7 +324,6 @@ QVariant LXQtPlatformTheme::themeHint(ThemeHint hint) const {
QIconEngine *LXQtPlatformTheme::createIconEngine(const QString &iconName) const
{
- XdgIconLoader::instance()->setFollowColorScheme(iconFollowColorScheme_);
return new XdgIconLoaderEngine(iconName);
}
diff --git a/src/lxqtplatformtheme.h b/src/lxqtplatformtheme.h
index 3c07c46..d0e7b6e 100644
--- a/src/lxqtplatformtheme.h
+++ b/src/lxqtplatformtheme.h
@@ -78,11 +78,13 @@ class Q_GUI_EXPORT LXQtPlatformTheme : public QObject, public QPlatformTheme {
// virtual QString standardButtonText(int button) const;
+public Q_SLOTS:
+ void lazyInit();
+
private:
void loadSettings();
private Q_SLOTS:
- void initWatch();
void onSettingsChanged();
private:

@ -1,2 +1,5 @@
colorizing-at-startup.patch
lxqtplatformtheme-follow-color-scheme.patch
# Ubuntu-specific patches # Ubuntu-specific patches
remember-view-mode.patch remember-view-mode.patch

Loading…
Cancel
Save