aboutsummaryrefslogtreecommitdiff
path: root/src/importldif.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-10 09:26:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-10 09:26:42 +0000
commit143ac56f1ced3b3d2cbb8d5c7e2238f0e0f1003e (patch)
treec2e893032d2e6332c2a12709ad56f3038a27a700 /src/importldif.c
parent16167e67b513a6a75c3a477b5bce03c49789c64c (diff)
implemented reorder of items in CSV import.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1607 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/importldif.c')
-rw-r--r--src/importldif.c13
1 files changed, 7 insertions, 6 deletions
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 <gtk/gtkentry.h>
#include <gtk/gtktable.h>
#include <gtk/gtkbutton.h>
+#include <gtk/gtkhbbox.h>
#include <gtk/gtkcheckbutton.h>
#include <gtk/gtktogglebutton.h>
#include <gtk/gtkstatusbar.h>
@@ -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);