* src/maemo/modest-platform.c:
authorAlberto Garcia <agarcia@igalia.com>
Tue, 19 Feb 2008 17:08:00 +0000 (17:08 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Tue, 19 Feb 2008 17:08:00 +0000 (17:08 +0000)
(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

index 707467f..a566b5e 100644 (file)
@@ -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