aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-10 06:55:49 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-10 06:55:49 +0000
commitd21519f61338fc47e524d030e932b530a956b5d0 (patch)
tree8fddbb1c5dbc9366b3b4e526102d737d1a53c541
parent8f727571f7719045938ec876c4441ed4c6ef8119 (diff)
flush events before scrolling to selected.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@330 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/summaryview.c8
3 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 165d701d..47eda0bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-06-10
+ * src/summaryview.c: flush events before scrolling to selected.
+
+2005-06-10
+
* src/summaryview.c: fixed possible crash (take 2).
2005-06-10
diff --git a/ChangeLog.ja b/ChangeLog.ja
index c00adf05..3a089b6a 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2005-06-10
+ * src/summaryview.c: 選択部へスクロールする前にイベントをフラッシュ
+ するようにした。
+
+2005-06-10
+
* src/summaryview.c: クラッシュする可能性があったのを修正(take 2)。
2005-06-10
diff --git a/src/summaryview.c b/src/summaryview.c
index 4043f4b5..1e9f3587 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -690,6 +690,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
GTK_MOVEMENT_BUFFER_ENDS,
item->sort_type == SORT_DESCENDING ?
-1 : 1, &moved);
+ GTK_EVENTS_FLUSH();
summary_scroll_to_selected(summaryview, TRUE);
}
}
@@ -714,6 +715,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
item->sort_type == SORT_DESCENDING ?
-1 : 1, &moved);
summary_lock(summaryview);
+ GTK_EVENTS_FLUSH();
summary_scroll_to_selected(summaryview, TRUE);
}
}
@@ -1258,13 +1260,15 @@ void summary_select_row(SummaryView *summaryview, GtkTreeIter *iter,
iter);
gtk_tree_view_set_cursor(GTK_TREE_VIEW(summaryview->treeview), path,
NULL, FALSE);
- if (do_refresh)
+ if (do_refresh) {
+ GTK_EVENTS_FLUSH();
gtk_tree_view_scroll_to_cell
(GTK_TREE_VIEW(summaryview->treeview),
path, NULL, TRUE, 0.5, 0.0);
- else
+ } else {
gtkut_tree_view_scroll_to_cell
(GTK_TREE_VIEW(summaryview->treeview), path);
+ }
gtk_tree_path_free(path);
}