From: Sergio Villar SenĂ­n Date: Fri, 18 Dec 2009 09:13:04 +0000 (+0100) Subject: Mark "Account title" as mandatory field in "Advanced settings" X-Git-Tag: 3.2.7~7 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=9dc8a2092192fbfed79e0643a3f6364036f7a6ea Mark "Account title" as mandatory field in "Advanced settings" Fixes NB#125223 --- diff --git a/src/hildon2/modest-default-account-settings-dialog.c b/src/hildon2/modest-default-account-settings-dialog.c index 8e5867e..e6461e5 100644 --- a/src/hildon2/modest-default-account-settings-dialog.c +++ b/src/hildon2/modest-default-account-settings-dialog.c @@ -325,25 +325,27 @@ create_page_account_details (ModestDefaultAccountSettingsDialog *self, GtkSizeGroup *value_sizegroup) { ModestDefaultAccountSettingsDialogPrivate *priv; - GtkWidget *box; - GtkWidget *hbox; + GtkWidget *box, *hbox, *caption; + gchar *tmp = NULL; priv = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG_GET_PRIVATE (self); box = gtk_vbox_new (FALSE, MODEST_MARGIN_NONE); - + /* The description widgets: */ priv->entry_account_title = GTK_WIDGET (modest_validating_entry_new ()); /* Do use auto-capitalization: */ hildon_gtk_entry_set_input_mode (GTK_ENTRY (priv->entry_account_title), HILDON_GTK_INPUT_MODE_FULL | HILDON_GTK_INPUT_MODE_AUTOCAP); - GtkWidget *caption = create_captioned (self, title_sizegroup, value_sizegroup, - _("mcen_fi_account_title"), FALSE, - priv->entry_account_title); + tmp = g_strconcat (_("mcen_fi_account_title"), "*", NULL); + caption = create_captioned (self, title_sizegroup, value_sizegroup, + tmp, FALSE, + priv->entry_account_title); + g_free (tmp); gtk_widget_show (priv->entry_account_title); connect_for_modified (self, priv->entry_account_title); gtk_box_pack_start (GTK_BOX (box), caption, FALSE, FALSE, 0); gtk_widget_show (caption); - + /* Prevent the use of some characters in the account title, * as required by our UI specification: */ GList *list_prevent = NULL;