Added wxWindow::GTKHandleRealized() virtual method to wxGTK.
This allows to easily do something in the derived classes when the widget is realized, without having to deal with GTK+ signals. In particular, get rid of another "realize" signal handler in wxTopLevelWindow and simply override this virtual method there. It also incidentally makes the callback code simpler as the window doesn't need to be constantly dereferenced. This shouldn't result in any changes to behaviour. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f854ecb5a8
commit
612515aff1
4 changed files with 38 additions and 30 deletions
|
|
@ -187,6 +187,10 @@ public:
|
|||
void GTKHandleFocusOutNoDeferring();
|
||||
static void GTKHandleDeferredFocusOut();
|
||||
|
||||
// Called when m_widget becomes realized. Derived classes must call the
|
||||
// base class method if they override it.
|
||||
virtual void GTKHandleRealized();
|
||||
|
||||
protected:
|
||||
// for controls composed of multiple GTK widgets, return true to eliminate
|
||||
// spurious focus events if the focus changes between GTK+ children within
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue