Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.

This commit is contained in:
Tristan Van Berkom 2010-11-29 16:20:01 +09:00
parent 5f427ff476
commit dbe026ed1e

View File

@ -1871,10 +1871,10 @@ gtk_cell_area_box_focus (GtkCellArea *area,
if (info->renderer == focus_cell)
found_cell = TRUE;
else if (found_cell)
else if (found_cell && /* Dont give focus to cells that are siblings to a focus cell */
gtk_cell_area_get_focus_from_sibling (area, info->renderer) == NULL)
{
gtk_cell_area_set_focus_cell (area, info->renderer);
cycled_focus = TRUE;
}
}