Re: GtkTreeView cursor focus



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]