From 9e7a8200addbb69e0d34b8787e802bca2e01afcb Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Tue, 19 Feb 2008 17:08:00 +0000 Subject: [PATCH] * src/maemo/modest-platform.c: (modest_platform_run_folder_name_dialog): Make the width of the text entry proportional to the size of the default text, so it works OK in all languages. Fixes NB#81007 pmo-trunk-r4200 --- src/maemo/modest-platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 707467f..a566b5e 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -837,6 +837,8 @@ modest_platform_run_folder_name_dialog (GtkWindow *parent_window, gtk_entry_set_text (GTK_ENTRY (entry), suggested_name); 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)); gtk_entry_select_region (GTK_ENTRY (entry), 0, -1); /* Connect to the response method to avoid closing the dialog -- 1.7.9.5