[goffice] 2009-04-27 Jean Brefort <jean brefort normalesup org>
- From: Jean Bréfort <jbrefort src gnome org>
- To: svn-commits-list gnome org
- Subject: [goffice] 2009-04-27 Jean Brefort <jean brefort normalesup org>
- Date: Mon, 27 Apr 2009 02:10:10 -0400 (EDT)
commit 7515485c0995981265534aab7d421d11bab685b7
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Apr 27 08:07:03 2009 +0200
2009-04-27 Jean Brefort <jean brefort normalesup org>
* goffice/app/go-conf-*: use go_conf_node_get_key_type which looks
ways better than go_conf_get_node_type.
---
ChangeLog | 5 +++++
goffice/app/go-conf-gconf.c | 6 +++---
goffice/app/go-conf-keyfile.c | 2 +-
goffice/app/go-conf-win32.c | 6 +++---
goffice/app/go-conf.h | 2 +-
5 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ad43971..582db82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-27 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/app/go-conf-*: use go_conf_node_get_key_type which looks
+ ways better than go_conf_get_node_type.
+
2009-04-26 Jean Brefort <jean brefort normalesup org>
* goffice/app/go-conf-gconf.c: renamed go_conf_get_type
diff --git a/goffice/app/go-conf-gconf.c b/goffice/app/go-conf-gconf.c
index 64f76a8..19222f0 100644
--- a/goffice/app/go-conf-gconf.c
+++ b/goffice/app/go-conf-gconf.c
@@ -276,7 +276,7 @@ go_conf_get_long_desc (GOConfNode *node, gchar const *key)
}
GType
-go_conf_get_node_type (GOConfNode *node, gchar const *key)
+go_conf_node_get_key_type (GOConfNode *node, gchar const *key)
{
GConfSchema *schema = get_schema (node, key);
GType t;
@@ -300,7 +300,7 @@ go_conf_get_value_as_str (GOConfNode *node, gchar const *key)
{
gchar *value_string;
- switch (go_conf_get_node_type (node, key)) {
+ switch (go_conf_node_get_key_type (node, key)) {
case G_TYPE_STRING:
value_string = go_conf_get_string (node, key);
break;
@@ -379,7 +379,7 @@ go_conf_get_str_list (GOConfNode *node, gchar const *key)
gboolean
go_conf_set_value_from_str (GOConfNode *node, gchar const *key, gchar const *val_str)
{
- switch (go_conf_get_node_type (node, key)) {
+ switch (go_conf_node_get_key_type (node, key)) {
case G_TYPE_STRING:
go_conf_set_string (node, key, val_str);
break;
diff --git a/goffice/app/go-conf-keyfile.c b/goffice/app/go-conf-keyfile.c
index 002a9cf..5675ca3 100644
--- a/goffice/app/go-conf-keyfile.c
+++ b/goffice/app/go-conf-keyfile.c
@@ -417,7 +417,7 @@ go_conf_get_long_desc (GOConfNode *node, gchar const *key)
}
GType
-go_conf_get_node_type (GOConfNode *node, gchar const *key)
+go_conf_node_get_key_type (GOConfNode *node, gchar const *key)
{
gchar **groups;
gchar *real_key;
diff --git a/goffice/app/go-conf-win32.c b/goffice/app/go-conf-win32.c
index 26f8a5c..3ff5da6 100644
--- a/goffice/app/go-conf-win32.c
+++ b/goffice/app/go-conf-win32.c
@@ -466,7 +466,7 @@ go_conf_get_long_desc (GOConfNode *node, gchar const *key)
}
GType
-go_conf_get_node_type (GOConfNode *node, gchar const *key)
+go_conf_node_get_key_type (GOConfNode *node, gchar const *key)
{
gulong type, size;
guchar *ptr = NULL;
@@ -491,7 +491,7 @@ go_conf_get_value_as_str (GOConfNode *node, gchar const *key)
{
gchar *value_string;
- switch (go_conf_get_node_type (node, key)) {
+ switch (go_conf_node_get_key_type (node, key)) {
case G_TYPE_STRING:
value_string = go_conf_get_string (node, key);
break;
@@ -516,7 +516,7 @@ gboolean
go_conf_set_value_from_str (GOConfNode *node, gchar const *key,
gchar const *val_str)
{
- switch (go_conf_get_node_type (node, key)) {
+ switch (go_conf_node_get_key_type (node, key)) {
case G_TYPE_STRING:
go_conf_set_string (node, key, val_str);
break;
diff --git a/goffice/app/go-conf.h b/goffice/app/go-conf.h
index e52f325..9fd9984 100644
--- a/goffice/app/go-conf.h
+++ b/goffice/app/go-conf.h
@@ -16,7 +16,7 @@ void go_conf_free_node (GOConfNode *node);
gchar *go_conf_get_short_desc (GOConfNode *node, gchar const *key);
gchar *go_conf_get_long_desc (GOConfNode *node, gchar const *key);
-GType go_conf_get_node_type (GOConfNode *node, gchar const *key);
+GType go_conf_node_get_key_type (GOConfNode *node, gchar const *key);
gchar *go_conf_get_value_as_str (GOConfNode *node, gchar const *key);
gboolean go_conf_get_bool (GOConfNode *node, gchar const *key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]