-void setup_account_wizardry_menu (GtkWidget *menu,
- ModestUI *modest_ui)
-{
- ModestUIPrivate *priv;
- gint retval;
- GSList *account_name_list;
- GSList *account_name_list_iter;
- GtkWidget *awidget;
- gint menucounter;
-
- g_return_if_fail(MODEST_IS_UI(modest_ui));
- priv = MODEST_UI_GET_PRIVATE(MODEST_UI(modest_ui));
-
- account_name_list=modest_account_mgr_account_names(priv->modest_acc_mgr, NULL);
-
- menucounter=1; /* The first item is supposed to be the "New Account..." item. */
- for (account_name_list_iter=account_name_list;
- account_name_list_iter!=NULL;
- account_name_list_iter=g_slist_next(account_name_list_iter))
- {
- awidget=gtk_menu_item_new_with_label(account_name_list_iter->data);
- gtk_widget_show(awidget);
- gtk_menu_attach(GTK_MENU(menu),
- awidget,
- 0, 1, menucounter, menucounter+1);
- }
-
- g_slist_free(account_name_list);
-}
-