After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151368 - calling gtk_widget_show from within a row_activate on a treeview causes the shown widget to not get pointer focus
calling gtk_widget_show from within a row_activate on a treeview causes the s...
Status: RESOLVED DUPLICATE of bug 137551
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-08-29 21:09 UTC by Todd A. Fisher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to ensure gtk_widget_show on a GtkWindow transfers pointer focus (2.16 KB, patch)
2004-08-29 21:11 UTC, Todd A. Fisher
none Details | Review

Description Todd A. Fisher 2004-08-29 21:09:26 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:
Comment 1 Todd A. Fisher 2004-08-29 21:11:10 UTC
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.
Comment 2 Todd A. Fisher 2004-08-29 22:21:08 UTC

*** This bug has been marked as a duplicate of 137551 ***