[evolution/gnome-40] Revert "ETable: Sometimes does not scroll to the cursor row"



commit dcd29f7376062b52b914494eba83b7806cf9d2a0
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 4 08:09:54 2021 +0200

    Revert "ETable: Sometimes does not scroll to the cursor row"
    
    It prevents scroll of the content when there's selected a row.
    
    This reverts commit 498c0f8f1f7eaa9422e015e43e4d9c0f3dcd26e2.

 src/e-util/e-table-item.c |  2 --
 src/e-util/e-table.c      | 14 --------------
 2 files changed, 16 deletions(-)
---
diff --git a/src/e-util/e-table-item.c b/src/e-util/e-table-item.c
index 66a05287d4..a6b648776e 100644
--- a/src/e-util/e-table-item.c
+++ b/src/e-util/e-table-item.c
@@ -1008,8 +1008,6 @@ eti_request_region_show (ETableItem *eti,
                end_col, end_row,
                &x1, &y1, &x2, &y2);
 
-       eti->cursor_on_screen = TRUE;
-
        if (delay)
                priv->show_cursor_delay_source = e_canvas_item_show_area_delayed_ex (
                        GNOME_CANVAS_ITEM (eti), x1, y1, x2, y2, delay);
diff --git a/src/e-util/e-table.c b/src/e-util/e-table.c
index 7856ed4054..05bea36703 100644
--- a/src/e-util/e-table.c
+++ b/src/e-util/e-table.c
@@ -769,24 +769,10 @@ table_canvas_reflow_idle (ETable *e_table)
 
        if (oldwidth != width - 1 ||
            oldheight != height - 1) {
-               ESelectionModel *selection_model;
-
                gnome_canvas_set_scroll_region (
                        GNOME_CANVAS (e_table->table_canvas),
                        0, 0, width - 1, height - 1);
                set_header_canvas_width (e_table);
-
-               selection_model = e_table_get_selection_model (e_table);
-               if (selection_model) {
-                       gint cursor_row, cursor_col;
-
-                       cursor_row = e_selection_model_cursor_row (selection_model);
-                       cursor_col = e_selection_model_cursor_col (selection_model);
-
-                       if (cursor_row >= 0 && cursor_col >= 0)
-                               e_selection_model_cursor_changed (selection_model, cursor_row, cursor_col);
-
-               }
        }
        e_table->reflow_idle_id = 0;
        return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]