gCvs2 still has focus issues
Guy Rouillier <[email protected]> Fri, 18 Feb 2005 19:43:27 -0500
| Newsgroups | gmane.comp.version-control.cvs.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
Richard, I'm sure you're aware, but apparently the GTK2 implementation
still has some focus problems. I'm now implementing the customize
dialog for the popup menus. I noticed when doing this that when
clicking between the folders and files panes, focus doesn't seem to
always follow along. The easiest way to see this is to watch the
Terminal window under anjuta; I still have printf's in the code that
identify when the popup menu appears that identify whether the popup
thinks it is for the folder or file pane.
Right after you start up gcvs, left click in a blank area of the files
pane, then right clickt the same place. When I do this, the popup for
folders appears. I have to actually click on an entry in the files
pane, and then the correct popup appears. Now click on an empty area of
the folder pane, and the reverse happens; the popup is still for the
files pane.
I don't know GTK that well, but I'm suspecting that the reason this is
happening is that all the logic we've added for focus handling and the
popups has been for GtkTreeView widgets. When I click on the
background, probably the container containing the treeview, instead of
the treeview itself, is getting these events. Since the treeview is the
only child of these containers, perhaps we can just have the container
forward the events onto the treeview. Thoughts?
Also, if you select a folder, it gets the blue selected background (I'm
running Gnome 2.6 on Gentoo kernel 2.6.9, xorg 6.8.0.) If you then
click on a file, it also gets a blue selected background; the folder
retains its blue selected background, however. So visually it's not
clear who has the focus. This may be standard GTK/Gnome behavior, but
it would be nice if the pane without the focus could change the
selection color to gray.
--
Guy Rouillier
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cvsgui-dev/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/