summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSMenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'Servers/WindowServer/WSMenu.h')
-rw-r--r--Servers/WindowServer/WSMenu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Servers/WindowServer/WSMenu.h b/Servers/WindowServer/WSMenu.h
index 03bbfc9c65..e6ff65282f 100644
--- a/Servers/WindowServer/WSMenu.h
+++ b/Servers/WindowServer/WSMenu.h
@@ -5,7 +5,7 @@
#include <AK/WeakPtr.h>
#include <SharedGraphics/Rect.h>
#include <WindowServer/WSMenuItem.h>
-#include <WindowServer/WSMessageReceiver.h>
+#include <LibCore/CObject.h>
class WSClientConnection;
class WSMenuBar;
@@ -13,7 +13,7 @@ class WSMessage;
class WSWindow;
class Font;
-class WSMenu final : public WSMessageReceiver {
+class WSMenu final : public CObject {
public:
WSMenu(WSClientConnection*, int menu_id, String&& name);
virtual ~WSMenu() override;
@@ -77,7 +77,7 @@ public:
void popup(const Point&);
private:
- virtual void on_message(const WSMessage&) override;
+ virtual void event(CEvent&) override;
int padding_between_text_and_shortcut() const { return 50; }
void did_activate(WSMenuItem&);