iconview: Render focus even in non-selected items
This is needed for the SELECTION_NONE mode where nothing is ever selected, but its also needed for CTRL-<key> keynav that moves the focus without changing the selection. https://bugzilla.gnome.org/show_bug.cgi?id=684984
This commit is contained in:
parent
3c7a6581dc
commit
ecd84fac48
@ -3042,14 +3042,12 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
|
||||
|
||||
state &= ~(GTK_STATE_FLAG_SELECTED | GTK_STATE_FLAG_PRELIGHT);
|
||||
|
||||
if ((state & GTK_STATE_FLAG_FOCUSED) &&
|
||||
item == icon_view->priv->cursor_item)
|
||||
flags |= GTK_CELL_RENDERER_FOCUSED;
|
||||
|
||||
if (item->selected)
|
||||
{
|
||||
if ((state & GTK_STATE_FLAG_FOCUSED) &&
|
||||
item == icon_view->priv->cursor_item)
|
||||
{
|
||||
flags |= GTK_CELL_RENDERER_FOCUSED;
|
||||
}
|
||||
|
||||
state |= GTK_STATE_FLAG_SELECTED;
|
||||
flags |= GTK_CELL_RENDERER_SELECTED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user