* decided against the wizard to modify existing accounts. We are going to use it
[modest] / src / gtk-glade / modest-ui-wizard.c
index d828771..47a8f98 100644 (file)
@@ -258,38 +258,8 @@ void wizard_account_dialog(ModestUI *modest_ui)
 void new_wizard_account (GtkWidget *widget,
                         gpointer user_data)
 {
-       /* for now: */
+       /* This will probably never be used to modify any existing account. */
        wizard_account_dialog(MODEST_UI(user_data));
 }
 
-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);
-}
-