/* passphrase.c - GTK+ based passphrase callback
- * Copyright (C) 2001 Werner Koch (dd9jn)
+ * Copyright (C) 2001-2006 Werner Koch (dd9jn) and the Sylpheed-Claws team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
gtk_entry_set_visibility(GTK_ENTRY(pass_entry), FALSE);
gtk_widget_grab_focus(pass_entry);
- gtkut_stock_button_set_create(&confirm_box, &ok_button, GTK_STOCK_OK,
+ gtkut_stock_button_set_create(&confirm_box,
&cancel_button, GTK_STOCK_CANCEL,
+ &ok_button, GTK_STOCK_OK,
NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_box, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
if (pass_ack) {
const gchar *entry_text;
entry_text = gtk_entry_get_text(GTK_ENTRY(pass_entry));
- if (entry_text) /* Hmmm: Do we really need this? */
+ the_passphrase = g_locale_from_utf8(entry_text, -1, NULL, NULL, NULL);
+ if (the_passphrase == NULL)
the_passphrase = g_strdup (entry_text);
}
gtk_widget_destroy (window);