summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2018-08-15 23:31:50 +0200
committerVictor Toso <toso@posteo.net>2018-09-25 09:33:11 +0000
commit7ee38142350ba9c7fd665e74b60060111895c4bf (patch)
tree557a299e8f823b77fa0b5d0ef441e54375b3327d /src
parent01a4517e362c087d69ec0726e17941c5b75267e6 (diff)
downloadgrilo-7ee38142350ba9c7fd665e74b60060111895c4bf.tar.gz
registry: Change variable name plugin -> groupname
The group name is only considered as plugin at the moment but followed patch will change it to consider plugin name + source name. This is a preparatory patch for that change. Signed-off-by: Victor Toso <victortoso@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/grl-registry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/grl-registry.c b/src/grl-registry.c
index 27fd41c..f51a62c 100644
--- a/src/grl-registry.c
+++ b/src/grl-registry.c
@@ -2006,19 +2006,19 @@ add_config_from_keyfile (GKeyFile *keyfile,
GrlConfig *config;
gchar **key;
gchar **keys;
- gchar **plugin;
+ gchar **groupname;
gchar **plugins;
gchar *value;
/* Look up for defined plugins */
plugins = g_key_file_get_groups (keyfile, NULL);
- for (plugin = plugins; *plugin; plugin++) {
- config = grl_config_new (*plugin, NULL);
+ for (groupname = plugins; *groupname; groupname++) {
+ config = grl_config_new (*groupname, NULL);
/* Look up configuration keys for this plugin */
- keys = g_key_file_get_keys (keyfile, *plugin, NULL, NULL);
+ keys = g_key_file_get_keys (keyfile, *groupname, NULL, NULL);
for (key = keys; *key; key++) {
- value = g_key_file_get_string (keyfile, *plugin, *key, NULL);
+ value = g_key_file_get_string (keyfile, *groupname, *key, NULL);
if (value) {
grl_config_set_string (config, *key, value);
g_free (value);