Bug #12169 2007-10-13 23:10

terrix

ALT-G window is not useful when working with keyboard

ALT+G opens a file-list window. when using ARROW DOWN/UP keys and going with the selector out of the list, the list position doesn't update to follow selected items.. so it is not possible to see what file is currently under selector.

Category
Application::Interface
Group
 
Status
Closed
Close date
2007-10-20 16:22
Assigned to
biplab
terrix 2007-10-13 23:12

CodeBlocks SVN 4439, wx2.8.4, Linux, unicode version

biplab 2007-10-20 04:38
This is due to a bug in wxGTK. You need to patch wxWidgets source to fix this problem. Use the following patch.

--- src/gtk/listbox.cpp	2007-09-25 16:52:42.000000000 +0800
+++ src/gtk/listbox.cpp	2007-10-20 12:09:51.000000000 +0800
@@ -895,6 +895,13 @@
         gtk_tree_selection_select_iter(selection, &iter);
     else
         gtk_tree_selection_unselect_iter(selection, &iter);
+    
+    GtkTreePath* path = gtk_tree_model_get_path(
+                            GTK_TREE_MODEL(m_liststore), &iter);
+
+    gtk_tree_view_scroll_to_cell(m_treeview, path, NULL, FALSE, 0.0f, 0.0f);
+
+    gtk_tree_path_free(path);
 
     m_blockEvent = false;
 }

Please note that the patch has been prepared with wxWidgets-2.8.6.

Thanks for your feedback.
biplab 2007-10-20 05:01

BTW, I've informed the wx team about this. You may wish to note the following url to track this.

https://sourceforge.net/tracker/index.php?func=detail&aid=1816882&group_id=9863&atid=109863

terrix 2007-10-20 13:17

thanx for fast reaction.

i've added mentioned lines.... recompiled wx..and installed again.. but it didn't help...

i have wx2.8.5, but the code for listbox.cpp seems to be looking same.. may be i miss something...

biplab 2007-10-20 16:22

I would suggest you to not to use wx-2.8.5. Please upgrade to wx-2.8.6 instead.

The patch works perfectly on my system and it has been accepted by wx team. :)

terrix 2007-10-21 07:58

ok, i'll try once again with wx-2.8.6