[Differential] [Request, 42 lines] D2772: xcursor discovery: modernize
zx2c4 (Jason A. Donenfeld)
noreply at phabricator.kde.org
Wed Sep 14 10:38:25 UTC 2016
zx2c4 created this revision.
zx2c4 added a reviewer: mart.
zx2c4 added a subscriber: plasma-devel.
Restricted Application added a project: Plasma.
REVISION SUMMARY
First we remove the fallback code for a version of Xcursor that
corresponds with an X server KDE doesn't even support any more.
Then we reverse the order of tilde expansion and deduplication, which
before was essentially incorrect.
Next we do deduplication properly, using Qt's removeDuplicates function.
Finally we replace the ugly regex with the helper function in
kcoreextras via std::transform.
This work here reflects the recent review and discussion that went into
the nearly identical code in kde-gtk-kcm.
TEST PLAN
Observe that cursors are correctly populated.
REPOSITORY
rPLASMADESKTOP Plasma Desktop
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D2772
AFFECTED FILES
kcms/cursortheme/xcursor/thememodel.cpp
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: zx2c4, mart
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160914/83216a91/attachment-0001.html>
More information about the Plasma-devel
mailing list