#include <string.h>
#include <libgnomevfs/gnome-vfs-mime-utils.h>
#include <modest-account-settings-dialog.h>
-#include <maemo/easysetup/modest-easysetup-wizard.h>
+#include <easysetup/modest-easysetup-wizard-dialog.h>
#include <hildon/hildon-sound.h>
#ifdef MODEST_HAVE_MCE
else
gtk_entry_set_text (GTK_ENTRY (entry), _("mcen_ia_default_folder_name"));
gtk_entry_set_width_chars (GTK_ENTRY (entry),
- g_utf8_strlen (gtk_entry_get_text (GTK_ENTRY (entry)), -1));
+ MAX (g_utf8_strlen (gtk_entry_get_text (GTK_ENTRY (entry)), -1),
+ g_utf8_strlen (_("mcen_ia_default_folder_name"), -1)));
gtk_entry_select_region (GTK_ENTRY (entry), 0, -1);
/* Connect to the response method to avoid closing the dialog
/* Create the hbox */
hbox = gtk_hbox_new (FALSE, 12);
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
/* Add hbox to dialog */
gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox),
hbox, FALSE, FALSE, 0);
-
+
gtk_widget_show_all (GTK_WIDGET(GTK_DIALOG(dialog)->vbox));
gtk_window_set_transient_for (GTK_WINDOW (dialog), parent_window);
-
+
+ /* Some locales like pt_BR need this to get the full window
+ title shown */
+ gtk_widget_set_size_request (GTK_WIDGET (dialog), 300, -1);
+
result = gtk_dialog_run (GTK_DIALOG(dialog));
if (result == GTK_RESPONSE_ACCEPT)
*folder_name = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));
} else {
retval = MODEST_CONNECTED_VIA_ANY;
}
- }
-
+ }
g_object_unref (iap);
}
#else