[libgda] UI extension API renaming to be more coherent
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] UI extension API renaming to be more coherent
- Date: Wed, 28 Jul 2010 15:47:44 +0000 (UTC)
commit 947beac25e9dd8f00e1acd5f6581ca40c8f0d51f
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Jul 28 16:46:54 2010 +0200
UI extension API renaming to be more coherent
gdaui_data_entry_get_original_value -> gdaui_data_entry_get_reference_value
gdaui_data_entry_set_value_default -> gdaui_data_entry_set_default_value
doc/C/libgda-ui-sections.txt | 4 ++--
doc/C/tmpl/gdaui-data-entry.sgml | 4 ++--
libgda-ui/gdaui-basic-form.c | 4 ++--
libgda-ui/gdaui-data-entry.c | 14 +++++++-------
libgda-ui/gdaui-data-entry.h | 4 ++--
testing/gdaui-test-data-entries.c | 2 +-
6 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/doc/C/libgda-ui-sections.txt b/doc/C/libgda-ui-sections.txt
index 2b277d7..756994e 100644
--- a/doc/C/libgda-ui-sections.txt
+++ b/doc/C/libgda-ui-sections.txt
@@ -81,9 +81,9 @@ gdaui_data_entry_set_value
gdaui_data_entry_get_value
gdaui_data_entry_content_is_valid
gdaui_data_entry_set_reference_value
-gdaui_data_entry_get_original_value
+gdaui_data_entry_get_reference_value
gdaui_data_entry_reset
-gdaui_data_entry_set_value_default
+gdaui_data_entry_set_default_value
gdaui_data_entry_set_attributes
gdaui_data_entry_get_attributes
gdaui_data_entry_get_handler
diff --git a/doc/C/tmpl/gdaui-data-entry.sgml b/doc/C/tmpl/gdaui-data-entry.sgml
index 92c9b7e..929f323 100644
--- a/doc/C/tmpl/gdaui-data-entry.sgml
+++ b/doc/C/tmpl/gdaui-data-entry.sgml
@@ -137,7 +137,7 @@ Data entry widget
@value:
-<!-- ##### FUNCTION gdaui_data_entry_get_original_value ##### -->
+<!-- ##### FUNCTION gdaui_data_entry_get_reference_value ##### -->
<para>
</para>
@@ -154,7 +154,7 @@ Data entry widget
@de:
-<!-- ##### FUNCTION gdaui_data_entry_set_value_default ##### -->
+<!-- ##### FUNCTION gdaui_data_entry_set_default_value ##### -->
<para>
</para>
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index bbe2120..c2ae632 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -769,7 +769,7 @@ create_entry_widget (SingleEntry *sentry)
gdaui_data_entry_set_reference_value (GDAUI_DATA_ENTRY (entry), value);
if (default_val) {
- gdaui_data_entry_set_value_default (GDAUI_DATA_ENTRY (entry), default_val);
+ gdaui_data_entry_set_default_value (GDAUI_DATA_ENTRY (entry), default_val);
gdaui_data_entry_set_attributes (GDAUI_DATA_ENTRY (entry),
GDA_VALUE_ATTR_CAN_BE_DEFAULT,
GDA_VALUE_ATTR_CAN_BE_DEFAULT);
@@ -1646,7 +1646,7 @@ gdaui_basic_form_reset (GdauiBasicForm *form)
/* non combo entry */
const GValue *value;
- value = gdaui_data_entry_get_original_value (GDAUI_DATA_ENTRY (sentry->entry));
+ value = gdaui_data_entry_get_reference_value (GDAUI_DATA_ENTRY (sentry->entry));
gdaui_data_entry_set_value (GDAUI_DATA_ENTRY (sentry->entry), value);
}
}
diff --git a/libgda-ui/gdaui-data-entry.c b/libgda-ui/gdaui-data-entry.c
index 5ba31d7..75f8781 100644
--- a/libgda-ui/gdaui-data-entry.c
+++ b/libgda-ui/gdaui-data-entry.c
@@ -249,7 +249,7 @@ gdaui_data_entry_content_is_valid (GdauiDataEntry *de, GError **error)
* @value: a #GValue, or %NULL
*
* Push a value into the GdauiDataEntry in the same way as gdaui_data_entry_set_value() but
- * also sets this value as the original value.
+ * also sets this value as the reference value.
*
* Since: 4.2
*/
@@ -266,7 +266,7 @@ gdaui_data_entry_set_reference_value (GdauiDataEntry *de, const GValue *value)
* gdaui_data_entry_reset
* @de: a #GtkWidget object which implements the #GdauiDataEntry interface
*
- * Tells that the current value in @de is to be considered as the original value
+ * Tells that the current value in @de is to be considered as the reference value
*
* Since: 4.2
*/
@@ -284,17 +284,17 @@ gdaui_data_entry_reset (GdauiDataEntry *de)
/**
- * gdaui_data_entry_get_original_value
+ * gdaui_data_entry_get_reference_value
* @de: a #GtkWidget object which implements the #GdauiDataEntry interface
*
- * Fetch the original value held in the GdauiDataEntry widget
+ * Fetch the reference value held in the #GdauiDataEntry widget
*
* Returns: the #GValue (not modifiable)
*
* Since: 4.2
*/
const GValue *
-gdaui_data_entry_get_original_value (GdauiDataEntry *de)
+gdaui_data_entry_get_reference_value (GdauiDataEntry *de)
{
g_return_val_if_fail (GDAUI_IS_DATA_ENTRY (de), NULL);
@@ -306,7 +306,7 @@ gdaui_data_entry_get_original_value (GdauiDataEntry *de)
/**
- * gdaui_data_entry_set_value_default
+ * gdaui_data_entry_set_default_value
* @de: a #GtkWidget object which implements the #GdauiDataEntry interface
* @value: a #GValue, or %NULL
*
@@ -321,7 +321,7 @@ gdaui_data_entry_get_original_value (GdauiDataEntry *de)
* Since: 4.2
*/
void
-gdaui_data_entry_set_value_default (GdauiDataEntry *de, const GValue *value)
+gdaui_data_entry_set_default_value (GdauiDataEntry *de, const GValue *value)
{
g_return_if_fail (GDAUI_IS_DATA_ENTRY (de));
g_return_if_fail (value);
diff --git a/libgda-ui/gdaui-data-entry.h b/libgda-ui/gdaui-data-entry.h
index 562333b..5167cf6 100644
--- a/libgda-ui/gdaui-data-entry.h
+++ b/libgda-ui/gdaui-data-entry.h
@@ -85,9 +85,9 @@ void gdaui_data_entry_set_value (GdauiDataEntry *de, con
GValue *gdaui_data_entry_get_value (GdauiDataEntry *de);
gboolean gdaui_data_entry_content_is_valid (GdauiDataEntry *de, GError **error);
void gdaui_data_entry_set_reference_value (GdauiDataEntry *de, const GValue *value);
-const GValue *gdaui_data_entry_get_original_value (GdauiDataEntry *de);
+const GValue *gdaui_data_entry_get_reference_value (GdauiDataEntry *de);
void gdaui_data_entry_reset (GdauiDataEntry *de);
-void gdaui_data_entry_set_value_default (GdauiDataEntry *de, const GValue *value);
+void gdaui_data_entry_set_default_value (GdauiDataEntry *de, const GValue *value);
void gdaui_data_entry_set_attributes (GdauiDataEntry *de, GdaValueAttribute attrs,
GdaValueAttribute mask);
diff --git a/testing/gdaui-test-data-entries.c b/testing/gdaui-test-data-entries.c
index a29c0ec..34ec8f2 100644
--- a/testing/gdaui-test-data-entries.c
+++ b/testing/gdaui-test-data-entries.c
@@ -924,7 +924,7 @@ default_clicked_cb (GtkButton *button, GtkWidget *entry)
wid = g_object_get_data (G_OBJECT (button), "entry");
value = gdaui_data_entry_get_value (GDAUI_DATA_ENTRY (wid));
- gdaui_data_entry_set_value_default (GDAUI_DATA_ENTRY (entry), value);
+ gdaui_data_entry_set_default_value (GDAUI_DATA_ENTRY (entry), value);
gda_value_free (value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]