From 1cd0b5999ef1ddd33ce5bcb8368d4438129f19fa Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 11 Apr 2007 06:17:31 +0000 Subject: scroll CList when reordering in CSV import. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1619 ee746299-78ed-0310-b773-934348b2243d --- src/importcsv.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.3