aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-11 02:34:08 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-11 02:34:08 +0000
commit86de127683c025e785cdd8e323bfa17447a218bd (patch)
treea571a78a37489e854f3d50816b44fcb15b4549d6 /src
parent5060cbb8d5707e14483a3f7c65d4123e1cbfc941 (diff)
fixed initially incorrect scrollbar size in CSV import.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1612 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/importcsv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/importcsv.c b/src/importcsv.c
index e7215ae9..4863c36f 100644
--- a/src/importcsv.c
+++ b/src/importcsv.c
@@ -213,6 +213,8 @@ static gboolean imp_csv_load_fields( gchar *sFile ) {
++data_len;
len = MAX(fields_len, data_len);
+ gtk_clist_freeze(clist);
+
for (i = 0; i < len; i++) {
text[ FIELD_COL_SELECT ] = "";
if (i < data_len)
@@ -234,6 +236,10 @@ static gboolean imp_csv_load_fields( gchar *sFile ) {
gtk_clist_set_pixmap(clist, row, FIELD_COL_SELECT, markxpm, markxpmmask);
}
}
+
+ gtk_clist_thaw(clist);
+ gtk_widget_queue_resize(GTK_WIDGET(clist));
+
g_strfreev(strv);
g_free(str);
}