From f0b87ef91c5f8c5e45157193a5806e781c9b44b0 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 31 Oct 2011 05:14:13 +0000 Subject: [PATCH] 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 --- src/gtk/window.cpp | 58 +++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index ec6db0f..a9a5767 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1893,35 +1893,6 @@ static void unrealize(GtkWidget*, wxWindowGTK* win) 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 //----------------------------------------------------------------------------- @@ -2000,6 +1971,35 @@ void gtk_window_style_set_callback( GtkWidget *WXUNUSED(widget), } // 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) // because it is static and so couldn't be made virtual -- 2.7.4