-void wxWindowGTK::GTKHandleRealized()
-{
- if (m_imData)
- {
- gtk_im_context_set_client_window
- (
- m_imData->context,
- m_wxwindow ? GTKGetDrawingWindow()
- : gtk_widget_get_window(m_widget)
- );
- }
-
- // We cannot set colours and fonts before the widget
- // been realized, so we do this directly after realization
- // or otherwise in idle time
-
- if (m_needsStyleChange)
- {
- SetBackgroundStyle(GetBackgroundStyle());
- m_needsStyleChange = false;
- }
-
- wxWindowCreateEvent event( this );
- event.SetEventObject( this );
- GTKProcessEvent( event );
-
- GTKUpdateCursor(true, false);
-}
-