slic3r: Fix typo in PopupWindow
This commit is contained in:
parent
d2d9621c9c
commit
b99bc4164d
|
@ -16,7 +16,7 @@ bool PopupWindow::Create(wxWindow *parent, int style)
|
||||||
if (!wxPopupTransientWindow::Create(parent, style))
|
if (!wxPopupTransientWindow::Create(parent, style))
|
||||||
return false;
|
return false;
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
GetTopParent(parent)->Bind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this);
|
GetTopParent(parent)->Bind(wxEVT_ACTIVATE, &PopupWindow::topWindowActivate, this);
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,12 @@ bool PopupWindow::Create(wxWindow *parent, int style)
|
||||||
PopupWindow::~PopupWindow()
|
PopupWindow::~PopupWindow()
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this);
|
GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActivate, this);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
void PopupWindow::topWindowActiavate(wxActivateEvent &event)
|
void PopupWindow::topWindowActivate(wxActivateEvent &event)
|
||||||
{
|
{
|
||||||
event.Skip();
|
event.Skip();
|
||||||
if (!event.GetActive() && IsShown()) DismissAndNotify();
|
if (!event.GetActive() && IsShown()) DismissAndNotify();
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
void topWindowActiavate(wxActivateEvent &event);
|
void topWindowActivate(wxActivateEvent &event);
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue