+ const gchar *protocol_display_name;
+ ModestProtocol *protocol;
+ GtkWidget *label;
+ GList *children;
+
+ /* Get the label and change it. This is ugly */
+ children = gtk_container_get_children (GTK_CONTAINER (priv->caption_incoming));
+ label = (GtkWidget *) children->data;
+
+ if (!GTK_IS_LABEL (label))
+ return;
+
+ protocol = modest_protocol_registry_get_protocol_by_type (protocol_registry,
+ protocol_type);
+ protocol_display_name = modest_protocol_get_display_name (protocol);
+
+ incomingserver_title = g_strdup_printf(_("mcen_li_emailsetup_servertype"),
+ protocol_display_name);
+
+ gtk_label_set_markup (GTK_LABEL (label), incomingserver_title);