aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-19 02:40:14 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-19 02:40:14 +0000
commitd066fb9d80f9fd9d39b6a93bbb861e9390647caf (patch)
tree3fe58e2320fa6bee0c4aad82754233a949b1c6ae
parent220b610d605386854926cd8b2713a1056c77e7ab (diff)
summary_unset_sort_column_id(): fixed crash when using GTK+ 2.4.x.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1245 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/summaryview.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b70d2a9d..359009b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-10-19
+ * src/summaryview.c: summary_unset_sort_column_id(): fixed crash when
+ using GTK+ 2.4.x.
+
+2006-10-19
+
* sylpheed-mailto-protocol.reg: added values for start menu (thanks
to Fukasawa).
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 71cc2bf6..00dd72a9 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2006-10-19
+ * src/summaryview.c: summary_unset_sort_column_id(): GTK+ 2.4.x 使用時
+ にクラッシュするバグを修正。
+
+2006-10-19
+
* sylpheed-mailto-protocol.reg: スタートメニュー用の値を追加
(深澤さん thanks)。
diff --git a/src/summaryview.c b/src/summaryview.c
index 8ed02a97..b333f582 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -903,7 +903,7 @@ static void summary_unset_sort_column_id(SummaryView *summaryview)
if (gtk_tree_sortable_get_sort_column_id
(GTK_TREE_SORTABLE(summaryview->store), &id, &order) &&
- id < N_SUMMARY_VISIBLE_COLS) {
+ id >= 0 && id < N_SUMMARY_VISIBLE_COLS) {
GtkTreeViewColumn *column = summaryview->columns[id];
column->sort_column_id = -1;
gtk_tree_view_column_set_sort_indicator(column, FALSE);