summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-04 18:22:37 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-04 18:22:37 (EDT)
commitc5a78ae13d0804ce00861d1439ba21bae2f285a1 (patch)
tree6b99acb30b00b460850bf0d1e21a91db148cc6c2 /src/config.c
parent22c5a71045176d87fa833be04642256ffafa0f64 (diff)
downloadmarquee-c5a78ae13d0804ce00861d1439ba21bae2f285a1.zip
marquee-c5a78ae13d0804ce00861d1439ba21bae2f285a1.tar.gz
marquee-c5a78ae13d0804ce00861d1439ba21bae2f285a1.tar.bz2
mq_config_set_*(): Fix key arguments to g_key_file_set_*()
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index b63e4a5..12b723e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -180,7 +180,7 @@ mq_config_set_boolean(MqConfig *config, const gchar *name, gboolean value)
split_name(name, &group, &key);
- g_key_file_set_boolean(config->key_file, group, name, value);
+ g_key_file_set_boolean(config->key_file, group, key, value);
set_type_or_run_callbacks(config, name, &value, TYPE_BOOLEAN);
}
@@ -193,7 +193,7 @@ mq_config_set_integer(MqConfig *config, const gchar *name, gint value)
split_name(name, &group, &key);
- g_key_file_set_integer(config->key_file, group, name, value);
+ g_key_file_set_integer(config->key_file, group, key, value);
set_type_or_run_callbacks(config, name, &value, TYPE_INTEGER);
}
@@ -206,7 +206,7 @@ mq_config_set_double(MqConfig *config, const gchar *name, gdouble value)
split_name(name, &group, &key);
- g_key_file_set_double(config->key_file, group, name, value);
+ g_key_file_set_double(config->key_file, group, key, value);
set_type_or_run_callbacks(config, name, &value, TYPE_DOUBLE);
}