Commit 4ade115a authored by David Redondo's avatar David Redondo 🏎
Browse files

xembed-sni-proxy: Add Menu property

Because we did not have this property the adaptor used a default
constructed empty path. An empty path is invalid though and Qt
would refuse to marshall it.
Unconditionally advertise '/' as the menu path even though we don't have
one. Callers looking for a menu there will receive an error that there's
not the interface that they expected at the path.

(cherry picked from commit b9de2c85)
parent 2f9b5062
......@@ -44,6 +44,7 @@ class SNIProxy : public QObject
Q_PROPERTY(int WindowId READ WindowId)
Q_PROPERTY(bool ItemIsMenu READ ItemIsMenu)
Q_PROPERTY(KDbusImageVector IconPixmap READ IconPixmap)
explicit SNIProxy(xcb_window_t wid, QObject *parent = nullptr);
......@@ -52,7 +53,10 @@ public:
void update();
void resizeWindow(const uint16_t width, const uint16_t height) const;
void hideContainerWindow(xcb_window_t windowId) const;
QDBusObjectPath menu() const
return QDBusObjectPath("/");
* @return the category of the application associated to this item
* @see Category
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment