Re: GtkTreeView cursor focus
- From: Stefan Kost <ensonic hora-obscura de>
- To: Jonathan Blandford <jrb redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkTreeView cursor focus
- Date: Tue, 22 Feb 2005 15:16:21 +0100
Hi Jonathan,
here is an example screenshot:
http://www.buzztard.org/index.php/Image:Bt-edit-0.0.1-08.png
1.) I have make one cell higher (e.g. the one in the first column) to
make to top and bottom line of the square focus mark visible.
Problem is, I don't really know the height. Mean something is reporting
back the wrong height.
2.) I would like the focusmark to fill the cellspace. It is the whole
cell that has the focus and not just the part the is filled with text.
3.) I can't get the first and last column to not getting focused.
They're mode is INERT. Still I can use the cursor keys to focus it.
Am I just don't gte it, are these bugs or just unimplemented features?
If some of these should go to bugzilla, please anyone confirm and I do
that. I'll also see if I can fix it.
Ciao
Stefan
Stefan Kost <ensonic hora-obscura de> writes:
I've already narrowed this a little further - its in gtktreeview.c (3801)
/* draw the big row-spanning focus rectangle, if needed */
if (!has_special_cell && node == cursor &&
GTK_TREE_VIEW_FLAG_SET (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS) &&
GTK_WIDGET_HAS_FOCUS (widget))
{
Any idea how to change/extend this to allow different behaviours, like:
GTK_TREE_VIEW_DRAW_CELLFOCUS
GTK_TREE_VIEW_DRAW_ROWFOCUS=GTK_TREE_VIEW_DRAW_KEYFOCUS
GTK_TREE_VIEW_DRAW_COLUMNFOCUS
The key here is the '!has_special_cell'. Since there are no special
cells in that row (where special is 'activatable' or 'editable'),
there's no need to focus individual cells. I'm pretty sure confident
that this is the right behavior -- why do you expect something different
here?
Thanks,
-Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]