static void tm_save_model(BalsaToolbarModel * model) { gchar *key; guint j; key = g_strconcat("toolbar-", balsa_toolbar_names[model->type], NULL); libbalsa_conf_remove_group(key); libbalsa_conf_push_group(key); g_free(key); if (model->style != (GtkToolbarStyle) (-1)) libbalsa_conf_set_int("Style", model->style); for (j = 0; j < model->current->len; j++) { BalsaToolbarEntry *entry; entry = &g_array_index(model->current, BalsaToolbarEntry, j); key = g_strdup_printf("Action%d", j); libbalsa_conf_set_string(key, entry->action); g_free(key); key = g_strdup_printf("Icon%d", j); libbalsa_conf_set_string(key, entry->icon); g_free(key); } libbalsa_conf_pop_group(); }
void libbalsa_imap_server_save_config(LibBalsaImapServer *server) { libbalsa_server_save_config(LIBBALSA_SERVER(server)); libbalsa_conf_set_int("ConnectionLimit", server->max_connections); libbalsa_conf_set_bool("PersistentCache", server->persistent_cache); libbalsa_conf_set_bool("HasFetchBug", server->has_fetch_bug); libbalsa_conf_set_bool("UseStatus", server->use_status); libbalsa_conf_set_bool("UseIdle", server->use_idle); }