[libgda] UI extension API changes
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] UI extension API changes
- Date: Wed, 28 Jul 2010 17:25:42 +0000 (UTC)
commit 87c5b00646d2bbabe11d3f4f0cf1969b6a92c43f
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Jul 28 18:07:40 2010 +0200
UI extension API changes
gdaui_data_entry_reset -> gdaui_data_entry_set_reference_current
gdaui_entry_combo_set_values_orig -> gdaui_entry_combo_set_reference_values
gdaui_entry_combo_get_values_orig -> gdaui_entry_combo_get_reference_values
gdaui_entry_combo_set_values_default -> gdaui_entry_combo_set_default_values
doc/C/libgda-ui-sections.txt | 2 +-
doc/C/tmpl/gdaui-data-entry.sgml | 2 +-
libgda-ui/data-entries/gdaui-entry-combo.c | 14 +++++++-------
libgda-ui/data-entries/gdaui-entry-combo.h | 6 +++---
libgda-ui/gdaui-basic-form.c | 6 +++---
libgda-ui/gdaui-data-entry.c | 4 ++--
libgda-ui/gdaui-data-entry.h | 2 +-
libgda-ui/libgda-ui.symbols | 8 ++++----
8 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/doc/C/libgda-ui-sections.txt b/doc/C/libgda-ui-sections.txt
index 756994e..d0d83b9 100644
--- a/doc/C/libgda-ui-sections.txt
+++ b/doc/C/libgda-ui-sections.txt
@@ -82,7 +82,7 @@ gdaui_data_entry_get_value
gdaui_data_entry_content_is_valid
gdaui_data_entry_set_reference_value
gdaui_data_entry_get_reference_value
-gdaui_data_entry_reset
+gdaui_data_entry_set_reference_current
gdaui_data_entry_set_default_value
gdaui_data_entry_set_attributes
gdaui_data_entry_get_attributes
diff --git a/doc/C/tmpl/gdaui-data-entry.sgml b/doc/C/tmpl/gdaui-data-entry.sgml
index 929f323..de44e3e 100644
--- a/doc/C/tmpl/gdaui-data-entry.sgml
+++ b/doc/C/tmpl/gdaui-data-entry.sgml
@@ -146,7 +146,7 @@ Data entry widget
@Returns:
-<!-- ##### FUNCTION gdaui_data_entry_reset ##### -->
+<!-- ##### FUNCTION gdaui_data_entry_set_reference_current ##### -->
<para>
</para>
diff --git a/libgda-ui/data-entries/gdaui-entry-combo.c b/libgda-ui/data-entries/gdaui-entry-combo.c
index 1bd1799..f8845aa 100644
--- a/libgda-ui/data-entries/gdaui-entry-combo.c
+++ b/libgda-ui/data-entries/gdaui-entry-combo.c
@@ -583,7 +583,7 @@ gdaui_entry_combo_get_all_values (GdauiEntryCombo *combo)
}
/**
- * gdaui_entry_combo_set_values_orig
+ * gdaui_entry_combo_set_reference_values
* @combo: a #GdauiEntryCombo widet
* @values: a list of #GValue values
*
@@ -591,7 +591,7 @@ gdaui_entry_combo_get_all_values (GdauiEntryCombo *combo)
* values provided in the list is modified.
*/
void
-gdaui_entry_combo_set_values_orig (GdauiEntryCombo *combo, GSList *values)
+gdaui_entry_combo_set_reference_values (GdauiEntryCombo *combo, GSList *values)
{
GSList *list;
@@ -651,7 +651,7 @@ gdaui_entry_combo_set_values_orig (GdauiEntryCombo *combo, GSList *values)
}
/**
- * gdaui_entry_combo_get_values_orig
+ * gdaui_entry_combo_get_reference_values
* @combo: a #GdauiEntryCombo widet
*
* Get the original values stored within @combo. The returned values are the ones
@@ -660,7 +660,7 @@ gdaui_entry_combo_set_values_orig (GdauiEntryCombo *combo, GSList *values)
* Returns: a new list of values
*/
GSList *
-gdaui_entry_combo_get_values_orig (GdauiEntryCombo *combo)
+gdaui_entry_combo_get_reference_values (GdauiEntryCombo *combo)
{
GSList *list;
GSList *retval = NULL;
@@ -688,7 +688,7 @@ gdaui_entry_combo_get_values_orig (GdauiEntryCombo *combo)
}
/**
- * gdaui_entry_combo_set_values_default
+ * gdaui_entry_combo_set_default_values
* @combo: a #GdauiEntryCombo widet
* @values: a list of #GValue values
*
@@ -696,7 +696,7 @@ gdaui_entry_combo_get_values_orig (GdauiEntryCombo *combo)
* values provided in the list is modified.
*/
void
-gdaui_entry_combo_set_values_default (GdauiEntryCombo *combo, GSList *values)
+gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo, GSList *values)
{
g_return_if_fail (combo && GDAUI_IS_ENTRY_COMBO (combo));
g_return_if_fail (combo->priv);
@@ -1006,7 +1006,7 @@ gdaui_entry_combo_get_attributes (GdauiDataEntry *iface)
}
/* has original value? */
- list2 = gdaui_entry_combo_get_values_orig (combo);
+ list2 = gdaui_entry_combo_get_reference_values (combo);
if (list2) {
retval = retval | GDA_VALUE_ATTR_HAS_VALUE_ORIG;
g_slist_free (list2);
diff --git a/libgda-ui/data-entries/gdaui-entry-combo.h b/libgda-ui/data-entries/gdaui-entry-combo.h
index e6d528a..fd0c937 100644
--- a/libgda-ui/data-entries/gdaui-entry-combo.h
+++ b/libgda-ui/data-entries/gdaui-entry-combo.h
@@ -59,9 +59,9 @@ GtkWidget *gdaui_entry_combo_new (GdauiSet *paramlist, GdauiS
gboolean gdaui_entry_combo_set_values (GdauiEntryCombo *combo, GSList *values);
GSList *gdaui_entry_combo_get_values (GdauiEntryCombo *combo);
GSList *gdaui_entry_combo_get_all_values (GdauiEntryCombo *combo);
-void gdaui_entry_combo_set_values_orig (GdauiEntryCombo *combo, GSList *values);
-GSList *gdaui_entry_combo_get_values_orig (GdauiEntryCombo *combo);
-void gdaui_entry_combo_set_values_default(GdauiEntryCombo *combo, GSList *values);
+void gdaui_entry_combo_set_reference_values (GdauiEntryCombo *combo, GSList *values);
+GSList *gdaui_entry_combo_get_reference_values (GdauiEntryCombo *combo);
+void gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo, GSList *values);
G_END_DECLS
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index 1c7207b..9867569 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -1525,9 +1525,9 @@ gdaui_basic_form_set_as_reference (GdauiBasicForm *form)
}
if (!allnull)
- gdaui_entry_combo_set_values_orig (GDAUI_ENTRY_COMBO (sentry->entry), values);
+ gdaui_entry_combo_set_reference_values (GDAUI_ENTRY_COMBO (sentry->entry), values);
else
- gdaui_entry_combo_set_values_orig (GDAUI_ENTRY_COMBO (sentry->entry), NULL);
+ gdaui_entry_combo_set_reference_values (GDAUI_ENTRY_COMBO (sentry->entry), NULL);
g_slist_free (values);
}
@@ -1648,7 +1648,7 @@ gdaui_basic_form_reset (GdauiBasicForm *form)
/* Combo entry */
GSList *values = NULL;
- values = gdaui_entry_combo_get_values_orig (GDAUI_ENTRY_COMBO (sentry->entry));
+ values = gdaui_entry_combo_get_reference_values (GDAUI_ENTRY_COMBO (sentry->entry));
gdaui_entry_combo_set_values (GDAUI_ENTRY_COMBO (sentry->entry), values);
g_slist_free (values);
}
diff --git a/libgda-ui/gdaui-data-entry.c b/libgda-ui/gdaui-data-entry.c
index 75f8781..bb5cc41 100644
--- a/libgda-ui/gdaui-data-entry.c
+++ b/libgda-ui/gdaui-data-entry.c
@@ -263,7 +263,7 @@ gdaui_data_entry_set_reference_value (GdauiDataEntry *de, const GValue *value)
}
/**
- * gdaui_data_entry_reset
+ * gdaui_data_entry_set_reference_current
* @de: a #GtkWidget object which implements the #GdauiDataEntry interface
*
* Tells that the current value in @de is to be considered as the reference value
@@ -271,7 +271,7 @@ gdaui_data_entry_set_reference_value (GdauiDataEntry *de, const GValue *value)
* Since: 4.2
*/
void
-gdaui_data_entry_reset (GdauiDataEntry *de)
+gdaui_data_entry_set_reference_current (GdauiDataEntry *de)
{
GValue *value;
g_return_if_fail (GDAUI_IS_DATA_ENTRY (de));
diff --git a/libgda-ui/gdaui-data-entry.h b/libgda-ui/gdaui-data-entry.h
index 5167cf6..534ad2e 100644
--- a/libgda-ui/gdaui-data-entry.h
+++ b/libgda-ui/gdaui-data-entry.h
@@ -86,7 +86,7 @@ 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_reference_value (GdauiDataEntry *de);
-void gdaui_data_entry_reset (GdauiDataEntry *de);
+void gdaui_data_entry_set_reference_current (GdauiDataEntry *de);
void gdaui_data_entry_set_default_value (GdauiDataEntry *de, const GValue *value);
void gdaui_data_entry_set_attributes (GdauiDataEntry *de, GdaValueAttribute attrs,
diff --git a/libgda-ui/libgda-ui.symbols b/libgda-ui/libgda-ui.symbols
index 8ba402d..faaa25d 100644
--- a/libgda-ui/libgda-ui.symbols
+++ b/libgda-ui/libgda-ui.symbols
@@ -50,7 +50,7 @@
gdaui_data_entry_get_value
gdaui_data_entry_get_value_type
gdaui_data_entry_grab_focus
- gdaui_data_entry_reset
+ gdaui_data_entry_set_reference_current
gdaui_data_entry_set_attributes
gdaui_data_entry_set_editable
gdaui_data_entry_set_reference_value
@@ -95,11 +95,11 @@
gdaui_entry_combo_get_all_values
gdaui_entry_combo_get_type
gdaui_entry_combo_get_values
- gdaui_entry_combo_get_values_orig
+ gdaui_entry_combo_get_reference_values
gdaui_entry_combo_new
+ gdaui_entry_combo_set_default_values
gdaui_entry_combo_set_values
- gdaui_entry_combo_set_values_default
- gdaui_entry_combo_set_values_orig
+ gdaui_entry_combo_set_reference_values
gdaui_entry_common_time_get_type
gdaui_entry_common_time_new
gdaui_entry_date_get_type
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]