+ /* folder_type */
+ folder_type = gtk_option_menu_new ();
+ gtk_widget_show (folder_type);
+
+ parent = item;
+ type = F_NORMAL;
+ while (parent && (type = parent->stype) == F_NORMAL) {
+ parent = folder_item_parent(parent);
+ }
+
+ if (type == F_INBOX && (parent = folder_item_parent(item)) != NULL
+ && folder_item_parent(parent) != NULL) {
+ type = F_NORMAL;
+ type_apply_to_sub = FALSE;
+ }
+
+ folder_type_menu = gtk_menu_new ();
+
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Normal"), F_NORMAL);
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Inbox"), F_INBOX);
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Outbox"), F_OUTBOX);
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Drafts"), F_DRAFT);
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Queue"), F_QUEUE);
+ MENUITEM_ADD (folder_type_menu, menuitem, _("Trash"), F_TRASH);
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (folder_type), folder_type_menu);
+
+ gtk_option_menu_set_history(GTK_OPTION_MENU(folder_type), type);
+
+ dummy_chkbtn = gtk_check_button_new();
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dummy_chkbtn), type_apply_to_sub);
+ gtk_widget_set_sensitive(dummy_chkbtn, FALSE);
+
+ if (((parent = folder_item_parent(item)) != NULL
+ && folder_item_parent(parent) == NULL)
+ && item->stype == F_NORMAL) {
+ gtk_widget_set_sensitive(folder_type, TRUE);
+ } else {
+ gtk_widget_set_sensitive(folder_type, FALSE);
+ }
+ label = gtk_label_new(_("Folder type:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1,
+ rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_FILL, 0, 0);
+ gtk_table_attach(GTK_TABLE(table), folder_type, 1, 2,
+ rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_FILL, 0, 0);
+ gtk_table_attach(GTK_TABLE(table), dummy_chkbtn, 2, 3,
+ rowcount, rowcount + 1, GTK_SHRINK, GTK_SHRINK, 0, 0);
+
+ rowcount++;
+