aboutsummaryrefslogtreecommitdiff
path: root/src/gtkutils.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-10 07:27:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-10 07:27:16 +0000
commit632b464ccd80368519427a5563749838d69f7846 (patch)
treed9a4f7b1bda26894f27bc82af8fff3b2213773c1 /src/gtkutils.c
parent5be8bc64abeef5279a06b492f0e9a8cdd141e188 (diff)
enable fast clear of summary view if GTK+ >= 2.10.0.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1223 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/gtkutils.c')
-rw-r--r--src/gtkutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutils.c b/src/gtkutils.c
index 3aa20958..bd3eba69 100644
--- a/src/gtkutils.c
+++ b/src/gtkutils.c
@@ -625,7 +625,7 @@ void gtkut_tree_view_scroll_to_cell(GtkTreeView *treeview, GtkTreePath *path,
void gtkut_tree_view_fast_clear(GtkTreeView *treeview, GtkTreeStore *store)
{
-#if GTK_CHECK_VERSION(2, 8, 0)
+#if GTK_CHECK_VERSION(2, 8, 0) && !GTK_CHECK_VERSION(2, 10, 0)
gtk_tree_store_clear(store);
#else
/* this is faster than above, but it seems to trigger crashes in