aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/MenuPrivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/gui/MenuPrivate.h')
-rw-r--r--src/osx/gui/MenuPrivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osx/gui/MenuPrivate.h b/src/osx/gui/MenuPrivate.h
index 433f246d..02b34422 100644
--- a/src/osx/gui/MenuPrivate.h
+++ b/src/osx/gui/MenuPrivate.h
@@ -6,7 +6,7 @@
@interface CruOsxMenuItemClickHandler : NSObject
- init:(cru::platform::gui::osx::details::OsxMenuItemPrivate*)p;
-- (void)handleClick:(id)sender;
+- (void)handleClick;
@end
namespace cru::platform::gui::osx {
@@ -51,10 +51,12 @@ class OsxMenuPrivate {
~OsxMenuPrivate();
public:
+ void SetParentItem(OsxMenuItem* item) { parent_item_ = item; }
void AttachToNative(NSMenu* native_menu);
private:
OsxMenu* d_;
+ OsxMenuItem* parent_item_ = nullptr;
NSMenu* menu_ = nullptr;
std::vector<OsxMenuItem*> items_;
};