mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
WindowServer: Give menu items an identifier field and add a simple callback.
Eventually these identifiers will be sent to the userspace client who created the menu. None of that is hooked up yet though.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#include "WSMenuItem.h"
|
||||
|
||||
WSMenuItem::WSMenuItem(const String& text)
|
||||
WSMenuItem::WSMenuItem(unsigned identifier, const String& text)
|
||||
: m_type(Text)
|
||||
, m_identifier(identifier)
|
||||
, m_text(text)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user