- menu = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(optmenu)));
-
- /* Clear all options and add them as necessary:
- * - if we're creating a new account, add all of them
- * - otherwise only add the correct one for this account
- */
- gtk_list_store_clear(menu);
- if( new_account || protocol == A_POP3 )
- COMBOBOX_ADD (menu, _("POP3"), A_POP3);
- if( new_account || protocol == A_IMAP4 )
- COMBOBOX_ADD (menu, _("IMAP4"), A_IMAP4);
- if( new_account || protocol == A_NNTP )
- COMBOBOX_ADD (menu, _("News (NNTP)"), A_NNTP);
- if( new_account || protocol == A_LOCAL )
- COMBOBOX_ADD (menu, _("Local mbox file"), A_LOCAL);
- if( new_account || protocol == A_NONE )
- COMBOBOX_ADD (menu, _("None (SMTP only)"), A_NONE);