[libgda/gtk3] s/gda_data_handler_get_default_handler/gda_data_handler_get_default/
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] s/gda_data_handler_get_default_handler/gda_data_handler_get_default/
- Date: Thu, 2 Dec 2010 19:37:06 +0000 (UTC)
commit 971cdfb9bbcdd0878829a792a68cc0ff17530261
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Dec 2 20:28:08 2010 +0100
s/gda_data_handler_get_default_handler/gda_data_handler_get_default/
doc/C/libgda-sections.txt | 2 +-
doc/C/tmpl/gda-data-handler.sgml | 4 ++--
.../gdaui-data-cell-renderer-textual.c | 2 +-
libgda-ui/gdaui-combo.c | 8 ++++----
libgda-ui/gdaui-init.c | 4 ++--
libgda-ui/internal/gdaui-provider-auth-editor.c | 2 +-
libgda-ui/internal/gdaui-provider-spec-editor.c | 2 +-
libgda/gda-data-handler.c | 4 ++--
libgda/gda-data-handler.h | 2 +-
libgda/gda-easy.c | 4 ++--
libgda/gda-holder.c | 4 ++--
libgda/gda-sql-builder.c | 2 +-
libgda/gda-statement.c | 2 +-
libgda/libgda.symbols | 2 +-
libgda/sqlite/gda-sqlite-provider.c | 4 ++--
providers/postgres/gda-postgres-ddl.c | 4 ++--
tests/test-input-parsers.c | 2 +-
17 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/doc/C/libgda-sections.txt b/doc/C/libgda-sections.txt
index 3b12290..db77876 100644
--- a/doc/C/libgda-sections.txt
+++ b/doc/C/libgda-sections.txt
@@ -829,7 +829,7 @@ gda_data_handler_get_sane_init_value
gda_data_handler_accepts_g_type
gda_data_handler_get_descr
<SUBECTION>
-gda_data_handler_get_default_handler
+gda_data_handler_get_default
<SUBSECTION Standard>
GDA_DATA_HANDLER
GDA_DATA_HANDLER_GET_IFACE
diff --git a/doc/C/tmpl/gda-data-handler.sgml b/doc/C/tmpl/gda-data-handler.sgml
index 7e4e8f3..451a1e4 100644
--- a/doc/C/tmpl/gda-data-handler.sgml
+++ b/doc/C/tmpl/gda-data-handler.sgml
@@ -16,7 +16,7 @@ Interface which provides data handling (conversions) capabilities
</para>
<para>
For each data type, a corresponding #GdaDataHandler object can be requested using the
- <link linkend="gda-data-handler-get-default-handler">gda_data_handler_get_default_handler()</link> function. However, when working
+ <link linkend="gda-data-handler-get-default">gda_data_handler_get_default()</link> function. However, when working
with a specific database provider, it's better to use a #GdaDataHandler which may be specific to the
database provider which will correctly handle each database specifics using
<link linkend="gda-server-provider-get-data-handler-g-type">gda_server_provider_get_data_handler_g_type()</link> or
@@ -111,7 +111,7 @@ Interface which provides data handling (conversions) capabilities
@Returns:
-<!-- ##### FUNCTION gda_data_handler_get_default_handler ##### -->
+<!-- ##### FUNCTION gda_data_handler_get_default ##### -->
<para>
</para>
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
index 4ab0aef..105bd79 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
@@ -453,7 +453,7 @@ gdaui_data_cell_renderer_textual_set_property (GObject *object,
datacell->priv->value = gda_value_copy (gval);
if (!datacell->priv->dh && (datacell->priv->type != G_TYPE_INVALID))
- datacell->priv->dh = g_object_ref (gda_data_handler_get_default_handler (datacell->priv->type));
+ datacell->priv->dh = g_object_ref (gda_data_handler_get_default (datacell->priv->type));
if (datacell->priv->dh) {
str = gda_data_handler_get_str_from_value (datacell->priv->dh, gval);
diff --git a/libgda-ui/gdaui-combo.c b/libgda-ui/gdaui-combo.c
index 6dd9524..e1e1f50 100644
--- a/libgda-ui/gdaui-combo.c
+++ b/libgda-ui/gdaui-combo.c
@@ -438,7 +438,7 @@ gdaui_combo_set_model (GdauiCombo *combo, GdaDataModel *model, gint n_cols, gint
if (cvalue && (G_VALUE_TYPE (cvalue) != GDA_TYPE_NULL)) {
gchar *str;
gint len;
- dh = gda_data_handler_get_default_handler (G_VALUE_TYPE (cvalue));
+ dh = gda_data_handler_get_default (G_VALUE_TYPE (cvalue));
str = gda_data_handler_get_str_from_value (dh, cvalue);
len = strlen (str);
g_free (str);
@@ -457,7 +457,7 @@ gdaui_combo_set_model (GdauiCombo *combo, GdaDataModel *model, gint n_cols, gint
column = gda_data_model_describe_column (model, index);
type = gda_column_get_g_type (column);
- dh = gda_data_handler_get_default_handler (type);
+ dh = gda_data_handler_get_default (type);
renderer = gtk_cell_renderer_text_new ();
g_object_set_data (G_OBJECT (renderer), "data-handler", dh);
@@ -802,7 +802,7 @@ combo_selector_set_column_visible (GdauiDataSelector *iface, gint column, gboole
if (cvalue && (G_VALUE_TYPE (cvalue) != GDA_TYPE_NULL)) {
gchar *str;
gint len;
- dh = gda_data_handler_get_default_handler (G_VALUE_TYPE (cvalue));
+ dh = gda_data_handler_get_default (G_VALUE_TYPE (cvalue));
str = gda_data_handler_get_str_from_value (dh, cvalue);
len = strlen (str);
g_free (str);
@@ -819,7 +819,7 @@ combo_selector_set_column_visible (GdauiDataSelector *iface, gint column, gboole
mcolumn = gda_data_model_describe_column (combo->priv->model, column);
type = gda_column_get_g_type (mcolumn);
- dh = gda_data_handler_get_default_handler (type);
+ dh = gda_data_handler_get_default (type);
renderer = gtk_cell_renderer_text_new ();
g_object_set_data (G_OBJECT (renderer), "data-handler", dh);
diff --git a/libgda-ui/gdaui-init.c b/libgda-ui/gdaui-init.c
index b32c44e..c0c2956 100644
--- a/libgda-ui/gdaui-init.c
+++ b/libgda-ui/gdaui-init.c
@@ -115,7 +115,7 @@ gdaui_new_data_entry (GType type, const gchar *plugin_name)
if (type == G_TYPE_INVALID)
return (GdauiDataEntry *) gdaui_entry_none_new (GDA_TYPE_NULL);
- dh = gda_data_handler_get_default_handler (type);
+ dh = gda_data_handler_get_default (type);
if (plugin_name && *plugin_name) {
GdauiPlugin *plugin_struct;
@@ -212,7 +212,7 @@ _gdaui_new_cell_renderer (GType type, const gchar *plugin_name)
if (!gdaui_plugins_hash)
gdaui_plugins_hash = init_plugins_hash ();
- dh = gda_data_handler_get_default_handler (type);
+ dh = gda_data_handler_get_default (type);
if (plugin_name && *plugin_name) {
GdauiPlugin *plugin_struct;
diff --git a/libgda-ui/internal/gdaui-provider-auth-editor.c b/libgda-ui/internal/gdaui-provider-auth-editor.c
index b6cee99..d50c54f 100644
--- a/libgda-ui/internal/gdaui-provider-auth-editor.c
+++ b/libgda-ui/internal/gdaui-provider-auth-editor.c
@@ -340,7 +340,7 @@ params_to_string (GdauiProviderAuthEditor *auth)
GType dtype;
dtype = gda_holder_get_g_type (param);
- dh = gda_data_handler_get_default_handler (dtype);
+ dh = gda_data_handler_get_default (dtype);
str = gda_data_handler_get_str_from_value (dh, value);
}
if (str && *str) {
diff --git a/libgda-ui/internal/gdaui-provider-spec-editor.c b/libgda-ui/internal/gdaui-provider-spec-editor.c
index b36c270..2aef203 100644
--- a/libgda-ui/internal/gdaui-provider-spec-editor.c
+++ b/libgda-ui/internal/gdaui-provider-spec-editor.c
@@ -389,7 +389,7 @@ params_to_string (GdauiProviderSpecEditor *spec)
GType dtype;
dtype = gda_holder_get_g_type (param);
- dh = gda_data_handler_get_default_handler (dtype);
+ dh = gda_data_handler_get_default (dtype);
str = gda_data_handler_get_str_from_value (dh, value);
}
if (str && *str) {
diff --git a/libgda/gda-data-handler.c b/libgda/gda-data-handler.c
index 1de6f66..621c539 100644
--- a/libgda/gda-data-handler.c
+++ b/libgda/gda-data-handler.c
@@ -272,7 +272,7 @@ gtype_equal (gconstpointer a, gconstpointer b)
}
/**
- * gda_data_handler_get_default_handler:
+ * gda_data_handler_get_default:
* @for_type: a #GType type
*
* Obtain a pointer to a #GdaDataHandler which can manage #GValue values of type @for_type. The returned
@@ -286,7 +286,7 @@ gtype_equal (gconstpointer a, gconstpointer b)
* Since: 4.2.3
*/
GdaDataHandler *
-gda_data_handler_get_default_handler (GType for_type)
+gda_data_handler_get_default (GType for_type)
{
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
static GHashTable *hash = NULL;
diff --git a/libgda/gda-data-handler.h b/libgda/gda-data-handler.h
index 4d57427..6d38061 100644
--- a/libgda/gda-data-handler.h
+++ b/libgda/gda-data-handler.h
@@ -65,7 +65,7 @@ GValue *gda_data_handler_get_sane_init_value (GdaDataHandler *dh, GTyp
/* information about the data handler itself */
gboolean gda_data_handler_accepts_g_type (GdaDataHandler *dh, GType type);
const gchar *gda_data_handler_get_descr (GdaDataHandler *dh);
-GdaDataHandler *gda_data_handler_get_default_handler (GType for_type);
+GdaDataHandler *gda_data_handler_get_default (GType for_type);
G_END_DECLS
diff --git a/libgda/gda-easy.c b/libgda/gda-easy.c
index 5f23793..83a129e 100644
--- a/libgda/gda-easy.c
+++ b/libgda/gda-easy.c
@@ -408,12 +408,12 @@ gda_perform_drop_table (GdaServerOperation *op, GError **error)
*
* Returns: (transfer none): a #GdaDataHandler which must not be modified or destroyed.
*
- * Deprecated: 4.2.3: Use gda_data_handler_get_default_handler() instead.
+ * Deprecated: 4.2.3: Use gda_data_handler_get_default() instead.
*/
GdaDataHandler *
gda_get_default_handler (GType for_type)
{
- return gda_data_handler_get_default_handler(for_type);
+ return gda_data_handler_get_default(for_type);
}
/**
diff --git a/libgda/gda-holder.c b/libgda/gda-holder.c
index 92a681b..71c8be2 100644
--- a/libgda/gda-holder.c
+++ b/libgda/gda-holder.c
@@ -776,7 +776,7 @@ gda_holder_get_value_str (GdaHolder *holder, GdaDataHandler *dh)
return NULL;
else {
if (!dh)
- dh = gda_data_handler_get_default_handler (holder->priv->g_type);
+ dh = gda_data_handler_get_default (holder->priv->g_type);
if (dh)
return gda_data_handler_get_str_from_value (dh, current_val);
else
@@ -851,7 +851,7 @@ gda_holder_set_value_str (GdaHolder *holder, GdaDataHandler *dh, const gchar *va
GValue *gdaval = NULL;
if (!dh)
- dh = gda_data_handler_get_default_handler (holder->priv->g_type);
+ dh = gda_data_handler_get_default (holder->priv->g_type);
if (dh)
gdaval = gda_data_handler_get_value_from_str (dh, value, holder->priv->g_type);
diff --git a/libgda/gda-sql-builder.c b/libgda/gda-sql-builder.c
index c22ebbc..ec2ac95 100644
--- a/libgda/gda-sql-builder.c
+++ b/libgda/gda-sql-builder.c
@@ -814,7 +814,7 @@ gda_sql_builder_add_expr_value (GdaSqlBuilder *builder, GdaDataHandler *dh, cons
if (value && (G_VALUE_TYPE (value) != GDA_TYPE_NULL)) {
GType type = G_VALUE_TYPE (value);
if (!dh)
- dh = gda_data_handler_get_default_handler (type);
+ dh = gda_data_handler_get_default (type);
else {
if (! gda_data_handler_accepts_g_type (dh, type)) {
g_warning (_("Unhandled data type '%s'"), g_type_name (type));
diff --git a/libgda/gda-statement.c b/libgda/gda-statement.c
index 85e0cab..3206dd7 100644
--- a/libgda/gda-statement.c
+++ b/libgda/gda-statement.c
@@ -694,7 +694,7 @@ default_render_value (const GValue *value, GdaSqlRenderingContext *context, GErr
if (context->provider)
dh = gda_server_provider_get_data_handler_g_type (context->provider, context->cnc, G_VALUE_TYPE (value));
else
- dh = gda_data_handler_get_default_handler (G_VALUE_TYPE (value));
+ dh = gda_data_handler_get_default (G_VALUE_TYPE (value));
if (!dh) {
g_set_error (error, GDA_SQL_ERROR, GDA_SQL_STRUCTURE_CONTENTS_ERROR,
diff --git a/libgda/libgda.symbols b/libgda/libgda.symbols
index d2b1bb0..2adbe24 100644
--- a/libgda/libgda.symbols
+++ b/libgda/libgda.symbols
@@ -189,7 +189,7 @@
gda_data_comparator_new
gda_data_comparator_set_key_columns
gda_data_handler_accepts_g_type
- gda_data_handler_get_default_handler
+ gda_data_handler_get_default
gda_data_handler_get_descr
gda_data_handler_get_sane_init_value
gda_data_handler_get_sql_from_value
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 44424eb..2187c5b 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -3022,7 +3022,7 @@ scalar_gda_hex_print_func (sqlite3_context *context, int argc, sqlite3_value **a
}
bin->binary_length = SQLITE3_CALL (sqlite3_value_bytes) (argv [0]);
gda_value_take_binary ((value = gda_value_new (GDA_TYPE_BINARY)), bin);
- dh = gda_data_handler_get_default_handler (GDA_TYPE_BINARY);
+ dh = gda_data_handler_get_default (GDA_TYPE_BINARY);
str = gda_data_handler_get_str_from_value (dh, value);
bin->data = NULL;
@@ -3054,7 +3054,7 @@ scalar_gda_hex_print_func2 (sqlite3_context *context, int argc, sqlite3_value **
}
bin->binary_length = SQLITE3_CALL (sqlite3_value_bytes) (argv [0]);
gda_value_take_binary ((value = gda_value_new (GDA_TYPE_BINARY)), bin);
- dh = gda_data_handler_get_default_handler (GDA_TYPE_BINARY);
+ dh = gda_data_handler_get_default (GDA_TYPE_BINARY);
str = gda_data_handler_get_str_from_value (dh, value);
bin->data = NULL;
diff --git a/providers/postgres/gda-postgres-ddl.c b/providers/postgres/gda-postgres-ddl.c
index 50d05a3..9e39779 100644
--- a/providers/postgres/gda-postgres-ddl.c
+++ b/providers/postgres/gda-postgres-ddl.c
@@ -796,7 +796,7 @@ gda_postgres_render_CREATE_USER (GdaServerProvider *provider, GdaConnection *cnc
g_string_append (string, " PASSWORD ");
dh = gda_server_provider_get_data_handler_g_type (provider, cnc, G_TYPE_STRING);
if (!dh)
- dh = gda_data_handler_get_default_handler (G_TYPE_STRING);
+ dh = gda_data_handler_get_default (G_TYPE_STRING);
tmp = gda_data_handler_get_sql_from_value (dh, value);
g_string_append (string, tmp);
@@ -945,7 +945,7 @@ gda_postgres_render_CREATE_USER (GdaServerProvider *provider, GdaConnection *cnc
}
dh = gda_server_provider_get_data_handler_g_type (provider, cnc, GDA_TYPE_TIMESTAMP);
if (!dh)
- dh = gda_data_handler_get_default_handler (GDA_TYPE_TIMESTAMP);
+ dh = gda_data_handler_get_default (GDA_TYPE_TIMESTAMP);
g_string_append (string, " VALID UNTIL ");
tmp = gda_data_handler_get_sql_from_value (dh, value);
diff --git a/tests/test-input-parsers.c b/tests/test-input-parsers.c
index 7b449d9..c3ec731 100644
--- a/tests/test-input-parsers.c
+++ b/tests/test-input-parsers.c
@@ -311,7 +311,7 @@ test_time_handler (void)
{
GdaDataHandler *dh;
gint i, j;
- dh = gda_data_handler_get_default_handler (GDA_TYPE_TIME);
+ dh = gda_data_handler_get_default (GDA_TYPE_TIME);
g_assert (dh);
for (i = 0; i < sizeof (timedata) / sizeof (TestTime); i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]