move class function out of extern "C" block
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1893,35 +1893,6 @@ static void unrealize(GtkWidget*, wxWindowGTK* win)
|
|||||||
gtk_im_context_set_client_window(win->m_imData->context, NULL);
|
gtk_im_context_set_client_window(win->m_imData->context, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// "size_allocate" from m_wxwindow or m_widget
|
// "size_allocate" from m_wxwindow or m_widget
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -2000,6 +1971,35 @@ void gtk_window_style_set_callback( GtkWidget *WXUNUSED(widget),
|
|||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// this wxWindowBase function is implemented here (in platform-specific file)
|
// this wxWindowBase function is implemented here (in platform-specific file)
|
||||||
// because it is static and so couldn't be made virtual
|
// because it is static and so couldn't be made virtual
|
||||||
|
Reference in New Issue
Block a user