[gnome-db] patch: hash-append-row.
- From: Bas Driessen <bas driessen xobas com>
- To: GNOME-DB List <gnome-db-list gnome org>
- Subject: [gnome-db] patch: hash-append-row.
- Date: Fri, 07 Jan 2005 13:15:41 +1000
Hello,
Attached a patch for the hash-append-row method. The row number of the
new row in the data model is not set. The attached patch will correct
that. The situation for the array-append-row method was OK already.
Thanks,
Bas.
--- ChangeLog.orig 2005-01-07 13:09:36.690258624 +1000
+++ ChangeLog 2005-01-07 13:12:16.001830922 +1000
@@ -1,3 +1,8 @@
+2005-01-07 Bas Driessen <bas driessen xobas com>
+
+ * libgda/gda-data-model-hash.c (gda_data_model_hash_append_row):
+ set row number of appended row.
+
2004-12-29 Aaron Gaudio <prothonotar tarnation dyndns org>
* libgda.spec.in: fixed includedir.
--- libgda/gda-data-model-hash.c.orig 2005-01-07 13:02:40.743055318 +1000
+++ libgda/gda-data-model-hash.c 2005-01-07 13:04:23.833241097 +1000
@@ -94,6 +94,7 @@
GDA_DATA_MODEL_HASH (model),
g_hash_table_size (GDA_DATA_MODEL_HASH (model)->priv->rows),
row);
+ gda_row_set_number (row, g_hash_table_size (GDA_DATA_MODEL_HASH (model)->priv->rows) - 1);
gda_data_model_row_inserted (model, g_hash_table_size (GDA_DATA_MODEL_HASH (model)->priv->rows) - 1);
gda_data_model_changed (model);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]