{
GSList *list = NULL;
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_5_MIN,
- _("mcen_va_options_updateinterval_5min"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_5_MIN,
+ _("mcen_va_options_updateinterval_5min"),
&list);
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_10_MIN,
- _("mcen_va_options_updateinterval_10min"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_10_MIN,
+ _("mcen_va_options_updateinterval_10min"),
&list);
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_15_MIN,
- _("mcen_va_options_updateinterval_15min"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_15_MIN,
+ _("mcen_va_options_updateinterval_15min"),
&list);
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_30_MIN,
- _("mcen_va_options_updateinterval_30min"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_30_MIN,
+ _("mcen_va_options_updateinterval_30min"),
&list);
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_1_HOUR,
- _("mcen_va_options_updateinterval_1h"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_1_HOUR,
+ _("mcen_va_options_updateinterval_1h"),
&list);
- add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_2_HOUR,
- _("mcen_va_options_updateinterval_2h"),
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_2_HOUR,
+ _("mcen_va_options_updateinterval_2h"),
+ &list);
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_4_HOUR,
+ _("mcen_va_options_updateinterval_4h"),
+ &list);
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_8_HOUR,
+ _("mcen_va_options_updateinterval_8h"),
+ &list);
+ add_to_modest_pair_list (MODEST_UPDATE_INTERVAL_24_HOUR,
+ _("mcen_va_options_updateinterval_24h"),
&list);
+
return (ModestPairList *) g_slist_reverse (list);
}
id = modest_selector_get_active_id (priv->connect_via);
state->default_account = modest_selector_get_active_id (priv->default_account_selector);
state->connect_via = *id;
- state->size_limit = modest_number_entry_get_value (priv->size_limit);
id = modest_selector_get_active_id (priv->update_interval);
state->update_interval = *id;
RETURN_FALSE_ON_ERROR(error);
modest_conf_set_int (conf, MODEST_CONF_UPDATE_INTERVAL, current_state.update_interval, NULL);
RETURN_FALSE_ON_ERROR(error);
- modest_conf_set_int (conf, MODEST_CONF_MSG_SIZE_LIMIT, current_state.size_limit, NULL);
- RETURN_FALSE_ON_ERROR(error);
modest_conf_set_bool (conf, MODEST_CONF_PLAY_SOUND_MSG_ARRIVE, current_state.play_sound, NULL);
RETURN_FALSE_ON_ERROR(error);
modest_conf_set_bool (conf, MODEST_CONF_PREFER_FORMATTED_TEXT, current_state.prefer_formatted_text, NULL);
initial_state.add_to_contacts != current_state.add_to_contacts ||
initial_state.connect_via != current_state.connect_via ||
initial_state.update_interval != current_state.update_interval ||
- initial_state.size_limit != current_state.size_limit ||
initial_state.play_sound != current_state.play_sound ||
initial_state.prefer_formatted_text != current_state.prefer_formatted_text ||
(current_state.default_account &&