Move SendIdleEvents() from wxApp to wxWindow.
Use it to properly implement idle events for wxGTK menubar, toolbar and statusbar. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -562,10 +562,6 @@ public:
|
||||
// it should return true if more idle events are needed, false if not
|
||||
virtual bool ProcessIdle();
|
||||
|
||||
// Send idle event to window and all subwindows
|
||||
// Returns true if more idle time is requested.
|
||||
virtual bool SendIdleEvents(wxWindow* win, wxIdleEvent& event);
|
||||
|
||||
// override base class version: GUI apps always use an event loop
|
||||
virtual bool UsesEventLoop() const { return true; }
|
||||
|
||||
|
@@ -61,8 +61,7 @@ public:
|
||||
// implementation from now on
|
||||
// --------------------------
|
||||
|
||||
// GTK callbacks
|
||||
virtual void OnInternalIdle();
|
||||
virtual bool SendIdleEvents(wxIdleEvent& event);
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
|
@@ -1372,8 +1372,9 @@ public:
|
||||
// behaviour
|
||||
virtual void OnInternalIdle();
|
||||
|
||||
// call internal idle recursively
|
||||
// void ProcessInternalIdle() ;
|
||||
// Send idle event to window and all subwindows
|
||||
// Returns true if more idle time is requested.
|
||||
virtual bool SendIdleEvents(wxIdleEvent& event);
|
||||
|
||||
// get the handle of the window for the underlying window system: this
|
||||
// is only used for wxWin itself or for user code which wants to call
|
||||
|
Reference in New Issue
Block a user