diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.ja | 4 | ||||
-rw-r--r-- | src/importcsv.c | 8 |
3 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2007-04-11 + * src/importcsv.c: scroll CList when reordering. + +2007-04-11 + * src/importcsv.c: supported tab-separated file. 2007-04-11 diff --git a/ChangeLog.ja b/ChangeLog.ja index 0de6c174..e083fdd3 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,9 @@ 2007-04-11 + * src/importcsv.c: 並べ替え時に CList をスクロールするようにした。 + +2007-04-11 + * src/importcsv.c: タブ区切りファイルに対応。 2007-04-11 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); } } |