This will mediate between applications using GMenu (like LibreOffice) and expose their menus
using our DBusMenu protocol so that no changes on our global menu side is needed.
WIP: So far all it can do is detect windows with GMenus attached to it, register a DBus service
and then announce the corresponding DBusMenu paths.
The new Night Color module for KWin is designed in a way to be fully
configurable (while safe checking values) via DBus. Also it is supposed to
get updated location data from workspace. To ease the configuration and
provide the updated location data this library is introduced.
* Abstracts away the DBus part and provides a generic adaptor to the
compositor as QML object for that.
** Allows to stage values and send them at once as needed for KWin's atomic
config changes.
** Informs about configuration changes.
* Provides also QML objects for other often used functionality in this
context (sun calculator and a locator, i.e. an encapsulated connection to
the location data service).
* For automatic location updates the library provides a KDE Daemon Module,
which gets the current location via such a locator object and sends it to
KWin.
* The library is named and structured in a way, such that it later can be
extended with functionality to configure gamma values in general (normal
color correction), i.e. as soon as the support for that has landed in KWin.
In theory the library could be used with other compositors as well, if they
use a somewhat similar mechanism as KWin. In this case though the
CompositorAdaptor class would need to be rewritten in parts, probably
subclassed.
Test plan:
Manually and auto tests.
Reviewers: #plasma, davidedmundson
Reviewed By: #plasma, davidedmundson
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D5931
Summary:
Composing CJK character requires a lot more key comparing to latin
characters. The raw length check does not make much sense for query string
in CJK characters. Here we use a simple algorithm to query the character
script property in unicode. If they are belong to CJK, use length 2 instead
of 1 for the character.
Test Plan:
Search "系" (normally requires three key press "x + i + 1" under pinyin) under
zh_CN in krunner and get some result instead of nothing.
Reviewers: hein, broulik
Reviewed By: hein
Subscribers: cfeck, ihipop, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D8771
Summary: It was required by drkonqi, but that was split out from plasma-workspace.
Reviewers: #plasma
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D7506
Summary:
We want to rely on some Qt5.7 features in upcoming Plasma
for example qAsConst
Reviewers: #plasma, mart
Reviewed By: mart
Subscribers: mart, bshah, #sysadmin, graesslin, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D4198
Summary:
libdbusmenu-qt had a quirkin it that meant it would spawn a nested
event loop when updating a menu.
In order to fix StatusNotifierItem I ended up making a fork of the 3
small classes that we needed and applying a fix, whilst we waited for
upstream.
We also were including a complicated library+plugin that handled import
and exporting, just to do importing which is rather pointless.
When appmenu support was restored, we ended up re-linking the original
dbusmenu-qt library. The original still had the same bug, manifesting in
a whole new way of Kate's bookmarks menu automatically closing when you
click on it.
This patch shares the same libdbusmenu-qt lib we have for the SNI
dataengine with the one for appmenu.
Test Plan:
Everything compiles after removing the find package for old libdbusmenu-
qt
Menu in the Plasma applet works a lot better, and doesn't have the bug
of menus randomly closing.
Reviewers: #plasma, broulik
Reviewed By: #plasma, broulik
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D3926