From c2965814fc1f15e5543e73d48a48f8e535cdd18d Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 24 Jul 2007 08:06:54 +0000 Subject: [PATCH 1/1] * Fixes NB#58923, an information banner is shown when trying to create/rename a folder with an empty string pmo-trunk-r2780 --- src/maemo/modest-platform.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 3cc28de..d1e9e2f 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -59,7 +59,8 @@ static osso_context_t *osso_context = NULL; -static void folder_name_insensitive_press (GtkWidget *widget, ModestWindow *window); +static void folder_name_insensitive_press (GtkWidget *widget, + ModestWindow *window); static void on_modest_conf_update_interval_changed (ModestConf* self, const gchar *key, @@ -775,7 +776,9 @@ modest_platform_run_folder_name_dialog (GtkWindow *parent_window, /* Add accept button (with unsensitive handler) */ buttons = gtk_container_get_children (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area)); accept_btn = GTK_WIDGET (buttons->next->data); - g_signal_connect (G_OBJECT (accept_btn), "insensitive-press", G_CALLBACK (folder_name_insensitive_press), parent_window); + g_signal_connect (G_OBJECT (accept_btn), "insensitive-press", + G_CALLBACK (folder_name_insensitive_press), + parent_window); /* Create label and entry */ label = gtk_label_new (label_text); @@ -826,7 +829,7 @@ modest_platform_run_folder_name_dialog (GtkWindow *parent_window, static void folder_name_insensitive_press (GtkWidget *widget, ModestWindow *window) { - hildon_banner_show_information (NULL, NULL, _("(empty)")); + hildon_banner_show_information (NULL, NULL, _CS("ckdg_ib_enter_name")); } gint -- 1.7.9.5