]> git.saurik.com Git - wxWidgets.git/commitdiff
removed the code to manually send wxNavigationEvents, it's not needed any more
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Apr 2007 15:00:56 +0000 (15:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Apr 2007 15:00:56 +0000 (15:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/listbox.cpp

index fdc21f53e6910ff35e17b2349068d1bd03eddd8c..53d9569aa1cd9a9bf8a3ca93be6b9a97d4cda489 100644 (file)
@@ -111,34 +111,6 @@ gtk_listbox_row_activated_callback(GtkTreeView        *treeview,
 }
 }
 
-//-----------------------------------------------------------------------------
-// "key_press_event"
-//-----------------------------------------------------------------------------
-
-extern "C" {
-static gint
-gtk_listbox_key_press_callback( GtkWidget *widget,
-                                GdkEventKey *gdk_event,
-                                wxListBox *listbox )
-{
-    if (g_blockEventsOnDrag) return FALSE;
-
-    if ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab))
-    {
-        wxNavigationKeyEvent new_event;
-        /* GDK reports GDK_ISO_Left_Tab for SHIFT-TAB */
-        new_event.SetDirection( (gdk_event->keyval == GDK_Tab) );
-        /* CTRL-TAB changes the (parent) window, i.e. switch notebook page */
-        new_event.SetWindowChange( (gdk_event->state & GDK_CONTROL_MASK) );
-        new_event.SetCurrentFocus( listbox );
-        if (listbox->GetEventHandler()->ProcessEvent( new_event ))
-            return TRUE;
-    }
-
-    return FALSE;
-}
-}
-
 //-----------------------------------------------------------------------------
 // "changed"
 //-----------------------------------------------------------------------------
@@ -456,11 +428,6 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     g_signal_connect_after(m_treeview, "row-activated",
                      G_CALLBACK(gtk_listbox_row_activated_callback), this);
 
-    // for panel navigation
-    g_signal_connect (m_treeview, "key_press_event",
-                      G_CALLBACK (gtk_listbox_key_press_callback),
-                           this);
-
     m_parent->DoAddChild( this );
 
     PostCreation(size);