[gtk+/treeview-refactor] Fixing gtk_cell_area_box_focus().
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Fixing gtk_cell_area_box_focus().
- Date: Sat, 4 Dec 2010 12:45:14 +0000 (UTC)
commit 1d3961b34258a7a8c97ca12993220554369fccb1
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Dec 4 21:49:44 2010 +0900
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.
gtk/gtkcellareabox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index e24119a..e69a323 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]