GNOME Bugzilla – Bug 151368
calling gtk_widget_show from within a row_activate on a treeview causes the shown widget to not get pointer focus
Last modified: 2004-12-22 21:47:04 UTC
Please describe the problem: In the gtk-demo when double clicking on any demo that causes a window to show that has a entry or text box the cursor does not become visible until clicking off of the demo window causes a WM_SETFOCUS and WM_KILLFOCUS. Steps to reproduce: 1. run gtk-demo 2. double click in the treeview on "Entry Completion" 3. notice the GtkEntry does not have a visible cursor. 4. click off the dialog causing it to lose focus WM_KILLFOCUS is sent 5. click back on the dialog cuasing it to recieve focus WM_SETFOCUS is sent. 6. the cursor is now visible Actual results: Expected results: Does this happen every time? 1. run gtk-demo 2. double click in the treeview on "Entry Completion" 3. notice the GtkEntry does not have a visible cursor. 4. click off the dialog causing it to lose focus WM_KILLFOCUS is sent 5. click back on the dialog cuasing it to recieve focus WM_SETFOCUS is sent. 6. the cursor is now visible Other information:
Created attachment 31066 [details] [review] Patch to ensure gtk_widget_show on a GtkWindow transfers pointer focus I created a simple patch to correct this problem by using SetFocus and SendMessage. It also calls gdk_pointer_ungrab for good measure.
*** This bug has been marked as a duplicate of 137551 ***