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:
@@ -256,6 +256,9 @@ public:
|
|||||||
|
|
||||||
// this widget will be queried for GTK's focus events
|
// this widget will be queried for GTK's focus events
|
||||||
GtkWidget *m_focusWidget;
|
GtkWidget *m_focusWidget;
|
||||||
|
|
||||||
|
void GTKDisableFocusOutEvent();
|
||||||
|
void GTKEnableFocusOutEvent();
|
||||||
|
|
||||||
wxGtkIMData *m_imData;
|
wxGtkIMData *m_imData;
|
||||||
|
|
||||||
|
@@ -2858,6 +2858,17 @@ void wxWindowGTK::GetTextExtent( const wxString& string,
|
|||||||
g_object_unref (layout);
|
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()
|
bool wxWindowGTK::GTKHandleFocusIn()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user