[grilo] config: Provided imlementation for grl_config_has_param.
- From: Iago Toral Quiroga <itoral src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] config: Provided imlementation for grl_config_has_param.
- Date: Wed, 19 Jan 2011 07:35:32 +0000 (UTC)
commit e7416782fbe9955148b4e51c791266b62b2b5fe7
Author: Iago Toral Quiroga <itoral igalia com>
Date: Wed Jan 19 08:34:10 2011 +0100
config: Provided imlementation for grl_config_has_param.
src/data/grl-config.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/data/grl-config.c b/src/data/grl-config.c
index 72a1335..8e1cd48 100644
--- a/src/data/grl-config.c
+++ b/src/data/grl-config.c
@@ -413,5 +413,6 @@ grl_config_get_password(GrlConfig *config)
gboolean
grl_config_has_param (GrlConfig *config, const gchar *param)
{
-
+ g_return_val_if_fail (GRL_IS_CONFIG (config), FALSE);
+ return g_key_file_has_key (config->priv->config, GROUP_NAME, param, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]