diff options
author | Milan Crha <mcrha@redhat.com> | 2011-10-07 21:35:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-10-07 21:35:15 +0800 |
commit | aa75990c13d0fb2aea2ced1f9f7bd7d1785bdffc (patch) | |
tree | 108bd4a88211f42abfdc495d3cf71433b5af8cb1 /widgets/table/e-table-header-item.c | |
parent | d2232a718dc86dda4182d154a7fdfe1d218229dc (diff) | |
download | gsoc2013-evolution-aa75990c13d0fb2aea2ced1f9f7bd7d1785bdffc.tar.gz gsoc2013-evolution-aa75990c13d0fb2aea2ced1f9f7bd7d1785bdffc.tar.zst gsoc2013-evolution-aa75990c13d0fb2aea2ced1f9f7bd7d1785bdffc.zip |
Bug #235665 - Heavy hard disk access when resizing columns in views
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r-- | widgets/table/e-table-header-item.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index b8aa55f369..43871a278a 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -1192,6 +1192,11 @@ ethi_end_resize (ETableHeaderItem *ethi) ethi->resize_col = -1; ethi->resize_guide = GINT_TO_POINTER (0); + if (ethi->table) + e_table_thaw_state_change (ethi->table); + else if (ethi->tree) + e_tree_thaw_state_change (ethi->tree); + gnome_canvas_item_request_update (GNOME_CANVAS_ITEM (ethi)); } @@ -1903,6 +1908,11 @@ ethi_event (GnomeCanvasItem *item, ethi->resize_col = col; ethi->resize_start_pos = start - ecol->width; ethi->resize_min_width = ecol->min_width; + + if (ethi->table) + e_table_freeze_state_change (ethi->table); + else if (ethi->tree) + e_tree_freeze_state_change (ethi->tree); } else { if (e->button.button == 1) { ethi->click_x = e->button.x; |