aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-10 01:17:34 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-10 01:17:34 +0800
commitac7def3e9d77081212b6a0537fa86e2172701634 (patch)
treeafdd991f258bf9027536c301915fbf1957adaea6 /widgets/e-table
parente7996a7ab1879d9602cb03824b9bcfda9a92f43f (diff)
downloadgsoc2013-evolution-ac7def3e9d77081212b6a0537fa86e2172701634.tar.gz
gsoc2013-evolution-ac7def3e9d77081212b6a0537fa86e2172701634.tar.zst
gsoc2013-evolution-ac7def3e9d77081212b6a0537fa86e2172701634.zip
Fixed etssv_remove.
2000-05-09 Christopher James Lahey <clahey@helixcode.com> * e-table-subset-variable.c: Fixed etssv_remove. svn path=/trunk/; revision=2951
Diffstat (limited to 'widgets/e-table')
-rw-r--r--widgets/e-table/ChangeLog4
-rw-r--r--widgets/e-table/e-table-subset-variable.c13
2 files changed, 15 insertions, 2 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 150496f4bf..2f0457a3ff 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-09 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-table-subset-variable.c: Fixed etssv_remove.
+
2000-05-08 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Make multi-line texts display properly. Fixed
diff --git a/widgets/e-table/e-table-subset-variable.c b/widgets/e-table/e-table-subset-variable.c
index c42d53842b..a8948c5e68 100644
--- a/widgets/e-table/e-table-subset-variable.c
+++ b/widgets/e-table/e-table-subset-variable.c
@@ -68,6 +68,7 @@ etssv_remove (ETableSubsetVariable *etssv,
ETableModel *etm = E_TABLE_MODEL(etssv);
ETableSubset *etss = E_TABLE_SUBSET(etssv);
int i;
+ int ret_val = FALSE;
for (i = 0; i < etss->n_map; i++){
if (etss->map_table[i] == row) {
@@ -75,10 +76,18 @@ etssv_remove (ETableSubsetVariable *etssv,
etss->n_map --;
if (!etm->frozen)
e_table_model_changed (etm);
- return TRUE;
+ ret_val = TRUE;
+ break;
}
}
- return FALSE;
+
+ for (i = 0; i < etss->n_map; i++){
+ if (etss->map_table[i] > row) {
+ etss->map_table[i] --;
+ }
+ }
+
+ return ret_val;
}
static void
-1/+2 * The FreeBSD x11@ and graphics team proudly presentszeising2014-04-175-66/+139 * Python cleanup:rene2014-01-141-1/+1 * Switch FreeBSD CURRENT to use the new xorg stack (WITH_NEW_XORG=) [0]zeising2013-12-165-20/+276 * Enable xkb support. [1]kwm2013-12-033-2045/+2049 * The FreeBSD graphics/x11 team proudly presentszeising2013-09-301-2/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Add an explicit dependency on pkgconfigbapt2013-09-021-1/+1 * Fix security issues in xorg client libraries.zeising2013-06-052-4/+4 * The FreeBSD x11 team proudly presentszeising2013-05-254-14/+2056 * This changes almost all the "gnomehack" only USE_GNOME cases to USES= pathfix.eadler2013-03-191-1/+1 * - Please welcome Xorg 7.5.2miwi2012-04-221-2/+1 * - Remove WITH_FBSD10_FIX, is no longer neededmiwi2011-11-091-1/+0 * - Fix build on FreeBSD 10miwi2011-10-291-0/+1 * - remove outdated warningeadler2011-10-272-14/+1 * Remove more tags from pkg-descr files fo the form:dougb2011-10-241-3/+0 * - Exclude Python 3.x from USE_PYTHON_BUILD as it fails to build with Python 3.xashish2011-02-222-2/+1 * - Update to 1.7ashish2010-09-152-4/+7 * - Change my maintainer address.ashish2010-06-111-1/+1 * - Update to 1.6wen2010-05-133-5/+10 * - Update to 1.5pav2009-12-133-10/+13 * - Add dependency on x11/xcb-proto >= 1.5, this does not build with earlier ve...amdmi32009-08-011-0/+2 * - Update to 1.4amdmi32009-07-302-4/+4 * - Enable installation of tutorialgahr2009-06-282-0/+7 * - Update to 1.3dhn2009-06-155-24/+5 * Add patch to fix xauth.rnoland2009-04-052-0/+17 * /tmp/cvsGePDN8rnoland2009-02-202-4/+4 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-243-11/+5 * allow x11/libxcb and x11/xcb-proto to build with python 2.5+rnoland2009-01-181-1/+1