[glib/gsettings] change g_settings_backend_new_tree to _create_tree
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/gsettings] change g_settings_backend_new_tree to _create_tree
- Date: Fri, 4 Sep 2009 16:21:36 +0000 (UTC)
commit 539f8c881b09c38405fb61e2faec601a5bb3a0bc
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Sep 4 12:21:19 2009 -0400
change g_settings_backend_new_tree to _create_tree
_new_* is a bad name for non-constructor functions
docs/reference/gio/gio-sections.txt | 2 +-
gio/gio.symbols | 2 +-
gio/gsettings.c | 2 +-
gio/gsettingsbackend.c | 4 ++--
gio/gsettingsbackend.h | 2 +-
gio/gsettingsdelayedbackend.c | 6 +++---
6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt
index fc6fedd..c866e20 100644
--- a/docs/reference/gio/gio-sections.txt
+++ b/docs/reference/gio/gio-sections.txt
@@ -1918,7 +1918,7 @@ g_unix_fd_message_get_type
<TITLE>GSettingsBackend</TITLE>
GSettingsBackend
g_settings_backend_get_default
-g_settings_backend_new_tree
+g_settings_backend_create_tree
g_settings_backend_read
g_settings_backend_write
g_settings_backend_get_writable
diff --git a/gio/gio.symbols b/gio/gio.symbols
index 3f3265f..6536a68 100644
--- a/gio/gio.symbols
+++ b/gio/gio.symbols
@@ -1262,7 +1262,7 @@ g_unix_fd_message_steal_fds
#if IN_FILE(_gsettingsbackend_c_)
g_settings_backend_get_type
g_settings_backend_get_default
-g_settings_backend_new_tree
+g_settings_backend_create_tree
g_settings_backend_read
g_settings_backend_write
g_settings_backend_get_writable
diff --git a/gio/gsettings.c b/gio/gsettings.c
index eab9a82..988024d 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -565,7 +565,7 @@ g_settings_set_value (GSettings *settings,
if (!g_settings_schema_type_check_key (settings->priv->schema, key, value))
g_error ("Key has the wrong type.");
- tree = g_settings_backend_new_tree ();
+ tree = g_settings_backend_create_tree ();
path = g_strconcat (settings->priv->base_path, key, NULL);
g_tree_insert (tree, path, g_variant_ref_sink (value));
g_settings_backend_write (settings->priv->backend, "", tree, NULL);
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index 5ef1091..35acf42 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -257,7 +257,7 @@ g_settings_backend_class_init (GSettingsBackendClass *class)
}
/**
- * g_settings_backend_new_tree:
+ * g_settings_backend_create_tree:
* @returns: a new #GTree
*
* This is a convenience function for creating a tree that is compatible
@@ -265,7 +265,7 @@ g_settings_backend_class_init (GSettingsBackendClass *class)
* with strcmp() g_free() and g_variant_unref().
**/
GTree *
-g_settings_backend_new_tree (void)
+g_settings_backend_create_tree (void)
{
return g_tree_new_full ((GCompareDataFunc) strcmp, NULL,
g_free, (GDestroyNotify) g_variant_unref);
diff --git a/gio/gsettingsbackend.h b/gio/gsettingsbackend.h
index 449942b..6c2bd10 100644
--- a/gio/gsettingsbackend.h
+++ b/gio/gsettingsbackend.h
@@ -74,7 +74,7 @@ struct _GSettingsBackend
GType g_settings_backend_get_type (void);
GSettingsBackend * g_settings_backend_get_default (void);
void g_settings_backend_set_default (GSettingsBackend *backend);
-GTree * g_settings_backend_new_tree (void);
+GTree * g_settings_backend_create_tree (void);
GVariant * g_settings_backend_read (GSettingsBackend *backend,
const gchar *key,
diff --git a/gio/gsettingsdelayedbackend.c b/gio/gsettingsdelayedbackend.c
index ce1d735..87f9889 100644
--- a/gio/gsettingsdelayedbackend.c
+++ b/gio/gsettingsdelayedbackend.c
@@ -101,7 +101,7 @@ g_settings_delayed_backend_apply (GSettingsDelayedBackend *delayed)
GTree *tmp;
tmp = delayed->priv->delayed;
- delayed->priv->delayed = g_settings_backend_new_tree ();
+ delayed->priv->delayed = g_settings_backend_create_tree ();
g_settings_backend_write (delayed->priv->backend,
delayed->priv->base_path,
@@ -120,7 +120,7 @@ g_settings_delayed_backend_revert (GSettingsDelayedBackend *delayed)
GTree *tmp;
tmp = delayed->priv->delayed;
- delayed->priv->delayed = g_settings_backend_new_tree ();
+ delayed->priv->delayed = g_settings_backend_create_tree ();
g_settings_backend_changed_tree (G_SETTINGS_BACKEND (delayed),
"", tmp, NULL);
g_tree_destroy (tmp);
@@ -312,7 +312,7 @@ g_settings_delayed_backend_init (GSettingsDelayedBackend *delayed)
G_TYPE_INSTANCE_GET_PRIVATE (delayed, G_TYPE_SETTINGS_DELAYED_BACKEND,
GSettingsDelayedBackendPrivate);
- delayed->priv->delayed = g_settings_backend_new_tree ();
+ delayed->priv->delayed = g_settings_backend_create_tree ();
}
GSettingsBackend *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]