use native TAB traversal for GTK+ 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -197,23 +197,6 @@ static gboolean gtk_frame_focus_out_callback( GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// "focus" from m_window
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static gboolean gtk_frame_focus_callback( GtkWidget *WXUNUSED(widget),
|
||||
GtkDirectionType WXUNUSED(d),
|
||||
wxWindow *WXUNUSED(win) )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
|
||||
// This disables GTK's tab traversal
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// "size_allocate"
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -628,10 +611,6 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
||||
g_signal_connect (m_widget, "configure_event",
|
||||
G_CALLBACK (gtk_frame_configure_callback), this);
|
||||
|
||||
// disable native tab traversal
|
||||
g_signal_connect (m_widget, "focus",
|
||||
G_CALLBACK (gtk_frame_focus_callback), this);
|
||||
|
||||
// activation
|
||||
g_signal_connect_after (m_widget, "focus_in_event",
|
||||
G_CALLBACK (gtk_frame_focus_in_callback), this);
|
||||
|
||||
Reference in New Issue
Block a user