GNOME Bugzilla – Bug 314422
Treeview typeahead: Search field causes problems with button clicks after popup is closed
Last modified: 2006-05-30 20:20:44 UTC
Please describe the problem: This ugly little problem takes place when you are searching something from a list using typeahead search. I usually just want to click some OK button (for example in filechooser) immediately after the right item is highlighted. The problem is that the button do not react to clicking, no matter how many times you try to click it. You have to first leave the button and enter it again and after that it works! (I know that it would be much easier to just press enter in filechooser anyway ;) Steps to reproduce: You can use any GtkFileChooser in open mode or even gtk-demo ("Editable Cells" tester) 1. use typeahead search in treeview, a popup will appear. 2. move mouse above some button 3. Try clicking the button. Actual results: The first click hides the popup, but the second one should cause the button to be pressed, but no. Nothing happens! You have to move mouse outside the button, enter the button again and press. There is no difference whether you close the popup by pressing mouse or wait until it closes by itself. Expected results: The click should cause the button to do it's job ;) Does this happen every time? Yes Other information:
I cannot reproduce this with GTK+ HEAD (which shouldn't differ much from 2.8 at this point). Does this still happen?
I tested this with gtk+ 2.8.0 and 2.8.6 and this happens with both versions for me. Too bad :( Another observation: When cursor is on top of the button (after popup is closed), then button is not drawn as highlighted. When I leave and re-enter the button, it's highlighted correctly. I debugged gtk source a bit. It turned out that the reason is that "in_button" field in GtkButton is only set to true in enter_notify. This causes that button ignores presses. So, this is not a treeview issue...
It looks like that the enter event do not reach the button, since the interactive search popup in GtkTreeView is a modal window (in gtk_tree_view_ensure_interactive_directory). I tried to remove this line. It corrects the problem with button, but the popup is not really usable any more.
This seems to be a duplicate of one old favourite... *** This bug has been marked as a duplicate of 56070 ***