diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-04 21:49:44 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-04 21:49:44 +0900 |
commit | 1d3961b34258a7a8c97ca12993220554369fccb1 (patch) | |
tree | c111bcf0af47a9f8218a9d213bc988fc1fd341a5 /gtk/gtkcellareabox.c | |
parent | c4eff8b6b070f854b511ae3788e09179f067b446 (diff) | |
download | gtk+-1d3961b34258a7a8c97ca12993220554369fccb1.tar.gz |
Fixing gtk_cell_area_box_focus().
the ->focus() method was getting mixed up when more than
one cell was in the same group (not aligned), added the
proper check to break out of the loop on time.
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r-- | gtk/gtkcellareabox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c index e24119a75a..e69a323150 100644 --- a/gtk/gtkcellareabox.c +++ b/gtk/gtkcellareabox.c @@ -1967,7 +1967,7 @@ gtk_cell_area_box_focus (GtkCellArea *area, CellGroup *group = &g_array_index (priv->groups, CellGroup, i); for (list = (cycle == FOCUS_NEXT) ? g_list_first (group->cells) : g_list_last (group->cells); - list; list = (cycle == FOCUS_NEXT) ? list->next : list->prev) + cycled_focus == FALSE && list; list = (cycle == FOCUS_NEXT) ? list->next : list->prev) { CellInfo *info = list->data; |