[libgda] Doc. corrections
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] Doc. corrections
- Date: Sun, 24 Jan 2010 17:18:25 +0000 (UTC)
commit deff101a5d93638b1a791477bb56240b6a306ba4
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri Jan 22 21:40:53 2010 +0100
Doc. corrections
doc/C/data_validation.xml | 4 ++--
libgda-ui/gdaui-raw-form.c | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/doc/C/data_validation.xml b/doc/C/data_validation.xml
index b1f81af..7203c9e 100644
--- a/doc/C/data_validation.xml
+++ b/doc/C/data_validation.xml
@@ -82,7 +82,7 @@ my_validate_change_cb (GdaHolder *h, const GValue *value, gpointer data)
key event allows one to control each holder's value change as they occur.
</para></listitem>
<listitem><para>
- When the <link linkend="gda-set-is-valid">gda_set_is_valid()</link> method is called, where
+ When the <link linkend="gda-set-is-valid">gda_set_is_valid()</link> method is called,
the <link linkend="GdaSet-validate-set">"validate-set"</link> signal is
emitted. If any handler for this signal returns a pointer to a filled <link linkend="GError">GError</link>
structure, then the signal's propagation is stopped and the calling method will return the generated
@@ -109,7 +109,7 @@ my_validate_change_cb (GdaHolder *h, const GValue *value, gpointer data)
The <link linkend="GdaDataProxy">GdaDataProxy</link> data model allows one to store temporary modifications
to a data model, and then apply (write to the proxied data model) those modifications row by row. Before
applying any row modification, the <link linkend="GdaDataProxy">GdaDataProxy</link> data model emits
- the <link linkend="GdaDataProxy::validate-row-changes">"validate-row-changes"</link> signal, and
+ the <link linkend="GdaDataProxy-validate-row-changes">"validate-row-changes"</link> signal, and
if handler for this signal returns a pointer to a filled <link linkend="GError">GError</link>
structure, then the signal's propagation is stopped and the row's modifications are not applied.
</para>
diff --git a/libgda-ui/gdaui-raw-form.c b/libgda-ui/gdaui-raw-form.c
index 371fde1..c1d3bea 100644
--- a/libgda-ui/gdaui-raw-form.c
+++ b/libgda-ui/gdaui-raw-form.c
@@ -592,10 +592,12 @@ action_new_cb (GtkAction *action, GdauiRawForm *form)
GError *error = NULL;
GSList *list;
- if (form->priv->write_mode >= GDAUI_DATA_PROXY_WRITE_ON_ROW_CHANGE)
+ if (form->priv->write_mode >= GDAUI_DATA_PROXY_WRITE_ON_ROW_CHANGE) {
+ /* validate current row (forces calling iter_validate_set_cb()) */
if (gda_data_model_iter_is_valid (form->priv->iter) &&
! gda_set_is_valid (GDA_SET (form->priv->iter), NULL))
return;
+ }
/* append a row in the proxy */
g_signal_handlers_block_by_func (form, G_CALLBACK (form_holder_changed_cb), NULL);
@@ -646,7 +648,7 @@ action_delete_cb (GtkAction *action, GdauiRawForm *form)
gint newrow;
newrow = gda_data_model_iter_get_row (form->priv->iter);
- if (row == newrow) {/* => row has been marked as delete but nit yet really deleted */
+ if (row == newrow) {/* => row has been marked as delete but not yet really deleted */
GError *error = NULL;
if (!gda_data_proxy_apply_row_changes (form->priv->proxy, row, &error)) {
_gdaui_utility_display_error ((GdauiDataProxy *) form, TRUE, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]