Added method to disable focus_out handling temporarily

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-10-27 14:02:54 +00:00
parent 5bddd46dde
commit 36a845fe5b
2 changed files with 14 additions and 0 deletions

View File

@@ -2858,6 +2858,17 @@ void wxWindowGTK::GetTextExtent( const wxString& string,
g_object_unref (layout);
}
void wxWindowGTK::GTKDisableFocusOutEvent()
{
g_signal_handlers_block_by_func( m_focusWidget,
(gpointer) gtk_window_focus_out_callback, this);
}
void wxWindowGTK::GTKEnableFocusOutEvent()
{
g_signal_handlers_unblock_by_func( m_focusWidget,
(gpointer) gtk_window_focus_out_callback, this);
}
bool wxWindowGTK::GTKHandleFocusIn()
{