DefaultMediaTheme: move controls to a namespace

They have generic names and are likely to conflict with other things. In
particular, there is another BPrivate::TitleView in BColumnListView,
which results in weird behavior (and me wasting days debugging things
and scratching my head) when one links libmedia before libcolumnlistview
and the wrong one ends up being called.
This commit is contained in:
Adrien Destugues 2019-12-26 22:47:57 +01:00
parent 6f46a20613
commit d9e196c7f5

View File

@ -34,6 +34,8 @@ using namespace BPrivate;
namespace BPrivate {
namespace DefaultMediaControls {
class SeparatorView : public BView {
public:
SeparatorView(orientation orientation);
@ -140,6 +142,10 @@ class DiscreteMessageFilter : public MessageFilter {
BDiscreteParameter &fParameter;
};
};
using namespace DefaultMediaControls;
} // namespace BPrivate