Ideally, this would fix a crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -184,10 +184,13 @@ static gint gtk_notebook_key_press_callback( GtkWidget *widget, GdkEventKey *gdk
|
||||
if (!win->m_hasVMT) return FALSE;
|
||||
if (g_blockEventsOnDrag) return FALSE;
|
||||
|
||||
/* win is a control: tab can be propagated up */
|
||||
// win is a control: tab can be propagated up
|
||||
if ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab))
|
||||
{
|
||||
int sel = win->GetSelection();
|
||||
if (sel == -1)
|
||||
return TRUE;
|
||||
|
||||
wxGtkNotebookPage *nb_page = win->GetNotebookPage(sel);
|
||||
wxCHECK_MSG( nb_page, FALSE, _T("invalid selection in wxNotebook") );
|
||||
|
||||
|
||||
@@ -184,10 +184,13 @@ static gint gtk_notebook_key_press_callback( GtkWidget *widget, GdkEventKey *gdk
|
||||
if (!win->m_hasVMT) return FALSE;
|
||||
if (g_blockEventsOnDrag) return FALSE;
|
||||
|
||||
/* win is a control: tab can be propagated up */
|
||||
// win is a control: tab can be propagated up
|
||||
if ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab))
|
||||
{
|
||||
int sel = win->GetSelection();
|
||||
if (sel == -1)
|
||||
return TRUE;
|
||||
|
||||
wxGtkNotebookPage *nb_page = win->GetNotebookPage(sel);
|
||||
wxCHECK_MSG( nb_page, FALSE, _T("invalid selection in wxNotebook") );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user