[libgda] Removed more gda_holder_set_attribute() references
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Removed more gda_holder_set_attribute() references
- Date: Tue, 12 Feb 2019 16:56:12 +0000 (UTC)
commit 3527a322b24bdb054be5c8f944d18c75090f6589
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Feb 12 10:48:42 2019 -0600
Removed more gda_holder_set_attribute() references
NEWS | 1 +
doc/C/libgda/libgda-6.0-sections.txt | 7 +------
tools/common/t-app.c | 8 ++------
3 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/NEWS b/NEWS
index de2792b30..51a0bfeb5 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ libgda 5.91.0
- Added new GdaHandlerText type for large texts types handler support
- GdaHandler now supports value transformation, if possible, before set it
- Ported almost all public API to use g_autoptr() and remove public private struct
+ - GdaHolder now is GdaAttributeManager free, replaced by GObect properties
- Fixed segfaults
- Fixed meta data generation engine
- Fixed PostgresSQL provider meta data generation integration
diff --git a/doc/C/libgda/libgda-6.0-sections.txt b/doc/C/libgda/libgda-6.0-sections.txt
index ccc8d63bd..1adfa6211 100644
--- a/doc/C/libgda/libgda-6.0-sections.txt
+++ b/doc/C/libgda/libgda-6.0-sections.txt
@@ -160,9 +160,6 @@ gda_column_get_allow_null
gda_column_get_auto_increment
gda_column_get_position
gda_column_get_default_value
-gda_column_get_attribute
-gda_column_set_attribute
-gda_column_set_attribute_static
gda_column_set_name
gda_column_set_description
gda_column_set_dbms_type
@@ -1370,9 +1367,6 @@ gda_holder_set_source_model
gda_holder_get_source_model
gda_holder_set_bind
gda_holder_get_bind
-gda_holder_get_attribute
-gda_holder_set_attribute_static
-gda_holder_set_attribute
<SUBSECTION Standard>
GDA_IS_HOLDER
GDA_HOLDER
@@ -2229,3 +2223,4 @@ GDA_IS_REPETITIVE_STATEMENT
GDA_TYPE_REPETITIVE_STATEMENT
gda_repetitive_statement_get_type
</SECTION>
+
diff --git a/tools/common/t-app.c b/tools/common/t-app.c
index ffc7fc723..7c899bb6f 100644
--- a/tools/common/t-app.c
+++ b/tools/common/t-app.c
@@ -274,16 +274,12 @@ t_app_setup (TAppFeatures features)
#ifdef HAVE_LDAP
opt = gda_holder_new_string ("ldap_dn", "dn");
- value = gda_value_new (G_TYPE_STRING);
- g_value_set_string (value, _("Defines how the DN column is handled for LDAP searched (among
\"dn\", \"rdn\" and \"none\")"));
- gda_holder_set_attribute (opt, GDA_ATTRIBUTE_DESCRIPTION, value, NULL);
+ g_object_set (opt, "description", _("Defines how the DN column is handled for LDAP searched
(among \"dn\", \"rdn\" and \"none\")"), NULL);
gda_set_add_holder (T_APP (global_t_app)->priv->options, opt);
g_object_unref (opt);
opt = gda_holder_new_string ("ldap_attributes", T_DEFAULT_LDAP_ATTRIBUTES);
- g_value_set_string (value, _("Defines the LDAP attributes which are fetched by default by
LDAP commands"));
- gda_holder_set_attribute (opt, GDA_ATTRIBUTE_DESCRIPTION, value, NULL);
- gda_value_free (value);
+ g_object_set (opt, "description", _("Defines the LDAP attributes which are fetched by default
by LDAP commands"), NULL);
gda_set_add_holder (T_APP (global_t_app)->priv->options, opt);
g_object_unref (opt);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]