diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-04-11 06:17:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-04-11 06:17:31 +0000 |
commit | 1cd0b5999ef1ddd33ce5bcb8368d4438129f19fa (patch) | |
tree | abbf3afadb1313e6f4315e3d5cae1927a43e8e2b /src/importcsv.c | |
parent | 26360edf874901796f323db1af7402c077f4d1b7 (diff) |
scroll CList when reordering in CSV import.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1619 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/importcsv.c')
-rw-r--r-- | src/importcsv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/importcsv.c b/src/importcsv.c index f63a3fae..5271bf00 100644 --- a/src/importcsv.c +++ b/src/importcsv.c @@ -305,6 +305,10 @@ static void imp_csv_field_list_up( GtkWidget *button, gpointer data ) { dest_attr->col = row; gtk_clist_thaw( clist ); + + if (gtk_clist_row_is_visible(clist, row - 1) + != GTK_VISIBILITY_FULL) + gtk_clist_moveto(clist, row - 1, 0, 0.5, 0); } } @@ -343,6 +347,10 @@ static void imp_csv_field_list_down( GtkWidget *button, gpointer data ) { dest_attr->col = row; gtk_clist_thaw( clist ); + + if (gtk_clist_row_is_visible(clist, row + 1) + != GTK_VISIBILITY_FULL) + gtk_clist_moveto(clist, row + 1, 0, 0.5, 0); } } |