aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-04 11:31:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-04 11:31:30 +0800
commit8e733f83054d1f3c5fe5837360613ce5088a117c (patch)
treeb7afe0413c70c58933d2a346ad88dfe02cc28beb
parentf2f3f80fbe80ee71d4a12614d50801ed92f6bbd1 (diff)
downloadgsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar.gz
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar.bz2
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar.lz
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar.xz
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.tar.zst
gsoc2013-evolution-8e733f83054d1f3c5fe5837360613ce5088a117c.zip
Add back in main loop calls during sorting.
2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c (qsort_callback): Add back in main loop calls during sorting. svn path=/trunk/; revision=2788
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-sorted-variable.c2
-rw-r--r--widgets/table/e-table-sorted-variable.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 19a6e05620..56fed29a0d 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,5 +1,10 @@
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
+ * e-table-sorted-variable.c (qsort_callback): Add back in main
+ loop calls during sorting.
+
+2000-05-04 Christopher James Lahey <clahey@helixcode.com>
+
* e-table-sorted-variable.c: Replace insert sort completely with a
qsort.
diff --git a/widgets/e-table/e-table-sorted-variable.c b/widgets/e-table/e-table-sorted-variable.c
index c687ebc871..e69ead64ae 100644
--- a/widgets/e-table/e-table-sorted-variable.c
+++ b/widgets/e-table/e-table-sorted-variable.c
@@ -192,6 +192,8 @@ qsort_callback(const void *data1, const void *data2)
int sort_count = e_table_sort_info_sorting_get_count(etsv_closure->sort_info);
int comp_val = 0;
int ascending = 1;
+ while(gtk_events_pending())
+ gtk_main_iteration();
for (j = 0; j < sort_count; j++) {
ETableSortColumn column = e_table_sort_info_sorting_get_nth(etsv_closure->sort_info, j);
ETableCol *col;
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index c687ebc871..e69ead64ae 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -192,6 +192,8 @@ qsort_callback(const void *data1, const void *data2)
int sort_count = e_table_sort_info_sorting_get_count(etsv_closure->sort_info);
int comp_val = 0;
int ascending = 1;
+ while(gtk_events_pending())
+ gtk_main_iteration();
for (j = 0; j < sort_count; j++) {
ETableSortColumn column = e_table_sort_info_sorting_get_nth(etsv_closure->sort_info, j);
ETableCol *col;