static GtkWidget *compose_account_option_menu_create(Compose *compose)
{
GList *accounts;
- GtkWidget *hbox;
GtkWidget *optmenu;
GtkWidget *menu;
gint num = 0, def_menu = 0;
accounts = account_get_list();
g_return_val_if_fail(accounts != NULL, NULL);
- hbox = gtk_hbox_new(FALSE, 0);
optmenu = gtk_option_menu_new();
- gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0);
menu = gtk_menu_new();
for (; accounts != NULL; accounts = accounts->next, num++) {
if (ac == compose->account) def_menu = num;
if (ac->name)
- name = g_strdup_printf("%s: %s <%s>",
+ name = g_markup_printf_escaped("<i>%s</i> : %s <<b>%s</b>>",
ac->account_name,
ac->name, ac->address);
else
- name = g_strdup_printf("%s: %s",
+ name = g_markup_printf_escaped("<i>%s</i> : <<b>%s</b>>",
ac->account_name, ac->address);
MENUITEM_ADD(menu, menuitem, name, ac->account_id);
+ gtk_label_set_use_markup (
+ GTK_LABEL (gtk_bin_get_child (GTK_BIN (menuitem))),
+ TRUE);
g_free(name);
g_signal_connect(G_OBJECT(menuitem), "activate",
G_CALLBACK(account_activated),
gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu);
gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), def_menu);
- return hbox;
+ return optmenu;
}
static void compose_set_priority_cb(gpointer data,
{
Compose *compose = (Compose *)data;
- if (prefs_common.work_offline && !inc_offline_should_override())
+ if (prefs_common.work_offline &&
+ !inc_offline_should_override(
+ _("Sylpheed-Claws needs network access in order "
+ "to send this email.")))
return;
if (compose->draft_timeout_tag != -1) { /* CLAWS: disable draft timeout */