summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-29 16:20:01 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-29 16:20:01 +0900
commitdbe026ed1eba1869970f6c2d8d399b1fd4246ac2 (patch)
treec632037d91283545dd81a19c9aa30689d445fb63
parent5f427ff476d1f434ec107552547cc928d711111a (diff)
downloadgtk+-dbe026ed1eba1869970f6c2d8d399b1fd4246ac2.tar.gz
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.
-rw-r--r--gtk/gtkcellareabox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index 5e25c8af98..a95bc789a5 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -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;
}
}