From 143ac56f1ced3b3d2cbb8d5c7e2238f0e0f1003e Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 10 Apr 2007 09:26:42 +0000 Subject: implemented reorder of items in CSV import. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1607 ee746299-78ed-0310-b773-934348b2243d --- src/importldif.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/importldif.c') diff --git a/src/importldif.c b/src/importldif.c index 01379589..59be79ed 100644 --- a/src/importldif.c +++ b/src/importldif.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -424,13 +425,10 @@ static void imp_ldif_cancel( GtkWidget *widget, gpointer data ) { } static void imp_ldif_file_select( void ) { - gchar *sFile; gchar *sSelFile; - sFile = gtk_editable_get_chars( GTK_EDITABLE(impldif_dlg.file_entry), 0, -1 ); - sSelFile = filesel_select_file( _("Select LDIF File"), sFile, + sSelFile = filesel_select_file( _("Select LDIF File"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN ); - g_free( sFile ); if ( sSelFile ) { gchar *sUTF8File; sUTF8File = conv_filename_to_utf8( sSelFile ); @@ -735,9 +733,12 @@ static void imp_ldif_dialog_create() { gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, 0); /* Button panel */ - gtkut_stock_button_set_create(&hbbox, &btnPrev, _("Prev"), - &btnNext, _("Next"), + gtkut_stock_button_set_create(&hbbox, &btnNext, _("Next"), + &btnPrev, _("Prev"), &btnCancel, GTK_STOCK_CANCEL); + gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(hbbox), btnCancel, + TRUE); + gtkut_box_set_reverse_order(GTK_BOX(hbbox), FALSE); gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbbox), 2); gtk_widget_grab_default(btnNext); -- cgit v1.2.3