diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-29 16:20:01 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-29 16:20:01 +0900 |
commit | dbe026ed1eba1869970f6c2d8d399b1fd4246ac2 (patch) | |
tree | c632037d91283545dd81a19c9aa30689d445fb63 /gtk/gtkcellareabox.c | |
parent | 5f427ff476d1f434ec107552547cc928d711111a (diff) | |
download | gtk+-dbe026ed1eba1869970f6c2d8d399b1fd4246ac2.tar.gz |
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r-- | gtk/gtkcellareabox.c | 4 |
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; } } |