Replace wxEVT_IDLE handler with overridden OnInternalIdle()
This function is always called, even if the application prevents the wxEVT_IDLE handler from being called, either by forgetting to Skip() the event in its own handler of this message or by changing the global idle event generation mode to wxIDLE_PROCESS_SPECIFIED.
This commit is contained in:
parent
11d04389a0
commit
e30309bf8c
2 changed files with 3 additions and 6 deletions
|
|
@ -127,6 +127,8 @@ public:
|
|||
virtual void GTKHandleRealized() override;
|
||||
#endif
|
||||
|
||||
virtual void OnInternalIdle() override;
|
||||
|
||||
protected:
|
||||
virtual void DoSetPage(const wxString& html, const wxString& baseUrl) override;
|
||||
|
||||
|
|
@ -135,7 +137,6 @@ private:
|
|||
void Init();
|
||||
|
||||
void OnSize(wxSizeEvent& event);
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
|
||||
// Actually create the browser: this can only be done once the window is
|
||||
// created in wxGTK.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue