Re: GtkTreeView cursor focus



Hi,

Its a pitty that non of the maintainers replied. I assume that the point I asked for clarification are all bugs. I've now posted the first two to bugzilla. I reask someone to comment on number three as I feel that this is some misunderstanding of the API, but don't find how to do it.

Stefan

Stefan Kost wrote:

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.

Posted under
http://bugzilla.gnome.org/show_bug.cgi?id=169463


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.

Posted under
http://bugzilla.gnome.org/show_bug.cgi?id=169464

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

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]