1
1

Merge branch '2676_learn_f13-f20_fix'

* 2676_learn_f13-f20_fix:
  Ticket #2676 (save of some learned keys is broken)
Этот коммит содержится в:
Ilia Maslakov 2011-12-06 11:47:19 +04:00
родитель b0a218cee2 6d99accfe0
Коммит 5cc8114d33
3 изменённых файлов: 16 добавлений и 2 удалений

Просмотреть файл

@ -68,6 +68,8 @@ int *mc_config_get_int_list (mc_config_t *, const gchar *, const gchar *, gsize
void mc_config_set_string_raw (mc_config_t *, const gchar *, const gchar *, const gchar *); void mc_config_set_string_raw (mc_config_t *, const gchar *, const gchar *, const gchar *);
void mc_config_set_string_raw_value (mc_config_t *, const gchar *, const gchar *, const gchar *);
void mc_config_set_string (const mc_config_t *, const gchar *, const gchar *, const gchar *); void mc_config_set_string (const mc_config_t *, const gchar *, const gchar *, const gchar *);
void mc_config_set_bool (mc_config_t *, const gchar *, const gchar *, gboolean); void mc_config_set_bool (mc_config_t *, const gchar *, const gchar *, gboolean);

Просмотреть файл

@ -79,6 +79,18 @@ mc_config_set_string_raw (mc_config_t * mc_config, const gchar * group,
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void
mc_config_set_string_raw_value (mc_config_t * mc_config, const gchar * group,
const gchar * param, const gchar * value)
{
if (!mc_config || !group || !param || !value)
return;
g_key_file_set_value (mc_config->handle, group, param, value);
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void void
mc_config_set_string (const mc_config_t * mc_config, const gchar * group, mc_config_set_string (const mc_config_t * mc_config, const gchar * group,
const gchar * param, const gchar * value) const gchar * param, const gchar * value)

Просмотреть файл

@ -371,9 +371,9 @@ learn_save (void)
{ {
profile_changed = 1; profile_changed = 1;
esc_str = strutils_escape (learnkeys[i].sequence, -1, ";", TRUE); esc_str = strutils_escape (learnkeys[i].sequence, -1, ";\\", TRUE);
mc_config_set_string_raw (mc_main_config, section, key_name_conv_tab[i].name, esc_str); mc_config_set_string_raw_value (mc_main_config, section, key_name_conv_tab[i].name, esc_str);
g_free (esc_str); g_free (esc_str);
} }