]> Pileus Git - ~andy/gtk/commitdiff
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 29 Nov 2010 07:20:01 +0000 (16:20 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 29 Nov 2010 07:20:01 +0000 (16:20 +0900)
gtk/gtkcellareabox.c

index 5e25c8af98f501ae115b17eec2cf1519c00bbd8c..a95bc789a591e6c36441ce74be2ba98e556cef84 100644 (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;
                }
            }