fix for compilation with wxUSE_MENU_CALLBACK=0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
138be25346
commit
32d50c82ec
@ -80,6 +80,8 @@ public:
|
||||
|
||||
// TODO: virtual void SetTitle(const wxString& title);
|
||||
|
||||
// compatibility only
|
||||
#if wxUSE_MENU_CALLBACK
|
||||
wxMenu(const wxString& title, const wxFunction func)
|
||||
: wxMenuBase(title)
|
||||
{
|
||||
@ -87,6 +89,7 @@ public:
|
||||
|
||||
Callback(func);
|
||||
}
|
||||
#endif // WXWIN_COMPATIBILITY_2
|
||||
|
||||
// implementation
|
||||
int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
|
||||
|
@ -80,6 +80,8 @@ public:
|
||||
|
||||
// TODO: virtual void SetTitle(const wxString& title);
|
||||
|
||||
// compatibility only
|
||||
#if wxUSE_MENU_CALLBACK
|
||||
wxMenu(const wxString& title, const wxFunction func)
|
||||
: wxMenuBase(title)
|
||||
{
|
||||
@ -87,6 +89,7 @@ public:
|
||||
|
||||
Callback(func);
|
||||
}
|
||||
#endif // WXWIN_COMPATIBILITY_2
|
||||
|
||||
// implementation
|
||||
int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
|
||||
|
Loading…
Reference in New Issue
Block a user