Revert 7abf18a16
MythMusic: fix the playlist editor adding duplicate tracks to the playlist

Selecting some nodes more than once in the playlist editor tree would add
duplicate tracks to the active playlist and the tree because we wasn't checking
if we had already added the tracks for the selected node.

(cherry picked from commit c907a46d2604382b3bad6e44d4574b91e7692bf7)
MythMusic: fix mixed up smart playlist "starts with" and "ends with" criteria

Fixes #12097

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
(cherry picked from commit b582bd009a24954884832866f6b27499d1b553e8)
Fixes #12098 Only dynamically load the libGLESv2 library if OpenGL ES is enabled.

The nvidia driver version 334.21 has included the libGLESv2 library.
Users upgrading to the newer drivers were seeing mythfrontend segfault
because it was dynamically loading this library and then using it
incorrectly (because mythtv had been build with opengles disabled)

(cherry picked from commit 5c7bd7f127e9ef2cb91de2bf0f82a35b7262d423)

Distro maintainers can you pull this in immediately please.
Advertise RAOP service before AirPlay service.

This helps having the AirPlay device being recognised as a full service

(cherry picked from commit 590f336feffe68eb89ce6996eac95ae6a8309930)
Add BonjourRegister::ReAnnounceService()

This allows to force re-announcing an already published service

(cherry picked from commit 9712943f6d2a1add95e3ecfefd0d3150eb2880e0)
Bump API version following 00739e7019e4a14b320022279595da1bc214f4c2
Fix AirPlay occasionally only showing as an audio device on iOS 7.x

We re-announce the AirPlay video service 2s after the first registration followed by every 10s.
This forces the video service to be registered after the RAOP Service. Since the release of iOS 7, AirPlay has been very much unusable.

Thanks to Memphiz from the XBMC team to figuring the cause.

Fixes #11901

(cherry picked from commit 5d2d30bc6af71d06230c6c3d1871dc665d12737c)
Make AirPlay photo sharing works with iOS 7.1

(cherry picked from commit dc99ee7ca11f6dad18a93a4ab959ca4cae16ffd2)
No need to add randomisation to bonjour first registration

(cherry picked from commit bdc75ddcec79e631149d3d42d373694c0fb1ca7b)
Improve AirPlay photosharing

Make the AirPlay photo sharing’s behavior closer to what an Apple TV does:
- Make the photo disappear whenever you exit the photo application
- Allows to play music while showing photos
- Improve transition between photos and videos
- Only make the photo disappear once video playback has started

(cherry picked from commit 9cba5e278763bb6d18603cf9f916ef7c75157953)
Fix settings display on macs

Qt widgets uses a default style that varies between platforms. On Linux, the default text is white, on mac its black.
The color of the text in the old settings aren’t configurable as it is (wouldn’t be difficult to do so)

Most themes are using a dark background, so on mac, using the old type settings is proving difficult as mostly unreadable.

So we redefine the style of most QWidget objects so it looks more similar to Linux.
This is done using Qt stylesheets. Where Qt stylesheets do not provided the intended behavior, we use QPalettes instead

(cherry picked from commit 96ecd539de8e76a880f0013b4b8854da216e17b1)

Conflicts:
	mythtv/libs/libmyth/mythwidgets.cpp
Bump API version

Following dca8f922a25e2ddd881ed0666f9cd9b3925c28e2, a full recompile is required
Fix AppleRemote thread not being killed when exiting the application

I’ve been seeing the error about the AppleRemote thread still running when quitting for years… had enough

(cherry picked from commit 42dd0a3470b401a59c36d22e9b0982a17db26a77)
Make python bindings work on mac

We play with the environment variable PYTHONPATH at run time so it points to the current location where the application bundle is located.
It assumes —with-python=python2.6 has been provided to configure (which the mac perl packager will do from now on)

(cherry picked from commit 66e6b5b7906eca45ae481df3c5911a6283eb225b)
Fix MythVideo general settings page not working

How long that one has been broken ???

The new MythUI screen is always on top, so it must be hidden when starting on old Qt screen…
Hopefully there are no more like this

(cherry picked from commit d7de3ff15162c6ce08ede065b5902bda31d1435f)
Revert "Bump API version"

This reverts commit c54c89865d430e2d106696695064ccd50bb88489.
Revert "Fix settings display on macs"

This reverts commit dca8f922a25e2ddd881ed0666f9cd9b3925c28e2.
Fix settings display on macs

My analysis for the problem in 96ecd539de8e76a880f0013b4b8854da216e17b1 was wrong.
The actual issue is that QPalette inheritance appears broken on a mac; if you set the palette to the top widget container, it doesn’t do anything on its children. However, setting the palette to the main application itself does.

Now things look exactly the same between mac and linux for better or worse. Including font sizes and colors.
A downside, is that the selection color appears to be misused in most themes including the default. So you can't tell if a text is selected or simply having focus

(cherry picked from commit 15425cb53e643a8c00975c1ef0ea7674464fdca2)
Fix old Qt setting screens preventing them from accepting keyboard inputs

Hopefully this is the final fix…
The issue seems to only have occurred on macs. When opening two MythDialogs (that includes MythPopup) in a row, often the 2nd one would not accept any used input anymore, only causing a “beep”; making it impossible to even exit that window.

The existing logic (and there was nothing wrong with it) was to simply disable the current MythDialog and put the new one on top of it. However, when doing so, somehow key events are now ignored.
So instead, we now disable all widgets within that MythDialog, without disabling the dialog itself.

When doing so, the newly created MythDialog is always working as expected.
This code should not be necessary, it is a workaround to what appears to be a Qt bug.

Fixes #11990.

(cherry picked from commit 9edb6d6c4aa0ed930be222ddd32cfc008d709d9f)