X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10d1f4131db5405eaee6a49d3a96dd0ca4706294..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index e64231b122..4034ee2157 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -16,7 +16,7 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "notebook.h" #endif @@ -56,7 +56,6 @@ BEGIN_EVENT_TABLE(wxNotebook, wxControl) EVT_MOUSE_EVENTS(wxNotebook::OnMouseEvent) EVT_SET_FOCUS(wxNotebook::OnSetFocus) EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey) -// EVT_IDLE(wxNotebook::OnIdle) END_EVENT_TABLE() IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl) @@ -457,8 +456,11 @@ void wxNotebook::OnSize(wxSizeEvent& event) // This was supposed to cure the non-display of the notebook // until the user resizes the window. // What's going on? -void wxNotebook::OnIdle(wxIdleEvent& event) +void wxNotebook::OnInternalIdle() { + wxWindow::OnInternalIdle(); + +#if 0 static bool s_bFirstTime = TRUE; if ( s_bFirstTime ) { /* @@ -478,7 +480,7 @@ void wxNotebook::OnIdle(wxIdleEvent& event) */ s_bFirstTime = FALSE; } - event.Skip(); +#endif } // Implementation: calculate the layout of the view rect @@ -531,13 +533,6 @@ bool wxNotebook::RefreshLayout(bool force) if ( pPage->GetAutoLayout() ) pPage->Layout(); } - // MBN: this is probably just hiding a problem under the carpet, - // but: with OpenMotif 2.2 (not Lesstif), not moving the window - // may cause the tabs to be not clickable. - else - { - pPage->Move(clientRect.x, clientRect.y); - } } Refresh(); }