aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-subset-variable.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-05 08:10:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-05 08:10:32 +0800
commitccd8e1fedde7a29acb5e10ade7e69b9197e65dbe (patch)
tree5c5d9b1d535b32aca4eb6926df4e968c2b4bd2ab /widgets/table/e-table-subset-variable.c
parentad3ee0de0244facb7bd2eed03805b68d01022601 (diff)
downloadgsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.tar.gz
gsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.tar.zst
gsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.zip
Add an e_table_group_add_all function and implement it in the different
2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h: Add an e_table_group_add_all function and implement it in the different ETableGroup classes. * e-table-sort-info.c: Make set_nth not call changed twice if it needs to allocate more space. * e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Add and implement an e_table_subset_variable_add_all command. * e-table.c: Use e_table_group_add_all as appropriate. Fix ETable grouping xml to work if there is a text element at the bottom of the grouping tree. svn path=/trunk/; revision=2806
Diffstat (limited to 'widgets/table/e-table-subset-variable.c')
-rw-r--r--widgets/table/e-table-subset-variable.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c
index 35cd4f9deb..bd96d5360c 100644
--- a/widgets/table/e-table-subset-variable.c
+++ b/widgets/table/e-table-subset-variable.c
@@ -38,6 +38,24 @@ etssv_add (ETableSubsetVariable *etssv,
e_table_model_changed (etm);
}
+static void
+etssv_add_all (ETableSubsetVariable *etssv)
+{
+ ETableModel *etm = E_TABLE_MODEL(etssv);
+ ETableSubset *etss = E_TABLE_SUBSET(etssv);
+ int rows = e_table_model_row_count(etss->source);
+ int i;
+
+ if (etss->n_map + rows > etssv->n_vals_allocated){
+ etssv->n_vals_allocated += MAX(INCREMENT_AMOUNT, rows);
+ etss->map_table = g_realloc (etss->map_table, etssv->n_vals_allocated * sizeof(int));
+ }
+ for (i = 0; i < rows; i++)
+ etss->map_table[etss->n_map++] = i;
+ if (!etm->frozen)
+ e_table_model_changed (etm);
+}
+
static gboolean
etssv_remove (ETableSubsetVariable *etssv,
gint row)
@@ -64,8 +82,9 @@ etssv_class_init (GtkObjectClass *object_class)
ETableSubsetVariableClass *klass = E_TABLE_SUBSET_VARIABLE_CLASS(object_class);
etssv_parent_class = gtk_type_class (PARENT_TYPE);
- klass->add = etssv_add;
- klass->remove = etssv_remove;
+ klass->add = etssv_add;
+ klass->add_all = etssv_add_all;
+ klass->remove = etssv_remove;
}
E_MAKE_TYPE(e_table_subset_variable, "ETableSubsetVariable", ETableSubsetVariable, etssv_class_init, NULL, PARENT_TYPE);
@@ -105,6 +124,16 @@ e_table_subset_variable_add (ETableSubsetVariable *etssv,
ETSSV_CLASS (etssv)->add (etssv, row);
}
+void
+e_table_subset_variable_add_all (ETableSubsetVariable *etssv)
+{
+ g_return_if_fail (etssv != NULL);
+ g_return_if_fail (E_IS_TABLE_SUBSET_VARIABLE(etssv));
+
+ if (ETSSV_CLASS(etssv)->add_all)
+ ETSSV_CLASS (etssv)->add_all (etssv);
+}
+
gboolean
e_table_subset_variable_remove (ETableSubsetVariable *etssv,
gint row)
-1.18&id=939d825113eeb8cd005e6fdf7c34078576e3d1f8'>new port: net/verlihub-pluginsedwin2004-10-1411-0/+251 * Fix build of net/mutella on CURRENT and upgrade to 0.4.5edwin2004-10-146-22/+26 * - update to 0.80rc4eik2004-10-1412-147/+128 * Remove audio/libvorbis-aotuv that was removed yesterday.erwin2004-10-141-1/+0 * Upgrade to version 2.0.26.demon2004-10-142-3/+3 * dpsearch --> ports/www/dpsearchedwin2004-10-141-0/+1 * New port: www/dpsearch : Open source search engine for Internet and Intranet ...edwin2004-10-148-0/+581 * asn1c --> ports/lang/asn1ckrion2004-10-141-0/+1 * Add asn1c 0.9.4,krion2004-10-146-0/+138 * Restore a piece of the previous commit that does some magic arounderwin2004-10-142-0/+12 * - Respect CC, CFLAGSvs2004-10-141-2/+1 * Add security/pwauth 2.2.8,clement2004-10-148-0/+106 * Port conflict (net/trafshow and net/trafshow4)edwin2004-10-143-0/+7 * Update to 0.401krion2004-10-145-23/+27 * Fix crash in summary searchkrion2004-10-142-0/+8 * Update CONFLICTS, fix portlint warnings.krion2004-10-141-3/+4 * Update CONFLICTS, clean up to please portlint.krion2004-10-141-3/+4 * Update CONFLICTS and fix portlint warnings.krion2004-10-141-3/+3 * Update to 0.92.7krion2004-10-146-12/+12 * viewglob --> ports/shells/viewglobedwin2004-10-141-0/+1 * New port: shells/viewglob, a GTK+ add-on to bash and zshedwin2004-10-147-0/+121 * zoidberg --> ports/shells/zoidbergedwin2004-10-141-0/+1 * [NEW PORT] shells/zoidberg: A modular PERL shelledwin2004-10-145-0/+152 * - Update to 2.61clement2004-10-142-5/+5 * Unbreak on 4.xvs2004-10-141-2/+2 * Upgrade to 2.1.2.vanilla2004-10-143-15/+6 * [MAINTAINER] net/vls: [update pkg-descr and COMMENT]edwin2004-10-142-10/+4 * Upgrade to 2.0.2vanilla2004-10-149-801/+144 * Upgrade to 2.0.2.vanilla2004-10-149-381/+351 * This is an update of www/resin3 to 3.0.9. The port adds two patches tovanilla2004-10-146-100/+149 * Upgrade to 1.1.2.vanilla2004-10-145-54/+7 * - drop maintainershipdinoex2004-10-145-5/+5 * - add a line why this port existdinoex2004-10-142-1/+3 * Backout previous commit because the rest of the updates can't beedwin2004-10-142-6/+45 * - mark FORBIDDENdinoex2004-10-141-0/+2 * [MAINTAINER] multimedia/vlc: update pkg-descr and COMMENTedwin2004-10-144-26/+12 * Update to 2.2.5.marcus2004-10-142-3/+3 * - update to 0.12clsung2004-10-142-4/+4 * - update to 0.04clsung2004-10-143-5/+4 * welcome new maintaineredwin2004-10-142-2/+2 * - update to 0.50clsung2004-10-142-3/+7 * - update to 1.5.4clsung2004-10-143-3/+4 * - update to 0.9.6clsung2004-10-145-26/+24 * Update to 0.8.3alioux2004-10-144-6/+6 * Update to 0.10.pre4lioux2004-10-146-14/+110 * [MAINTAINER] audio/faad2: Patch for new mpeg4ip [2 of 4]edwin2004-10-142-44/+6 * I'd like to take maintain ship of this , net/vls , andedwin2004-10-142-2/+2 * Check PERL_LEVEL and not OSVERSION when deciding if we need to use the extramarcus2004-10-149-9/+9 * Fix build with Perl < 5.6.1.marcus2004-10-148-0/+56 * bmp-faad --> ports/audio/bmp-faadedwin2004-10-141-0/+1 * [NEW PORT] audio/bmp-faad2: Beep Media Player (BMP) plugin for faadedwin2004-10-144-0/+105 * mBox --> ports/audio/mBoxedwin2004-10-141-0/+1 * New port: audio/mBox - organizing music filesedwin2004-10-145-0/+98 * ifp-line --> ports/audio/ifp-lineedwin2004-10-141-0/+1 * [New port] audio/ifp-line (interface to iRiver music players)edwin2004-10-146-0/+78 * coverhunter --> ports/audio/coverhunteredwin2004-10-141-0/+1 * New port: audio/coverhunter, a program fetching the covers of your digital mu...edwin2004-10-148-0/+239 * icegenerator --> ports/audio/icegeneratoredwin2004-10-141-0/+1 * New port: audio/icegenerator Direct streaming generator for Icecast/Shoutcastedwin2004-10-146-0/+59 * Fix cross-site scripting vulnerabilitylofi2004-10-149-1/+173 * gavl --> ports/multimedia/gavledwin2004-10-141-0/+1 * [NEW PORT] multimedia/gavl: A library for handling uncompressed video and aud...edwin2004-10-149-0/+171 * - Update to 0.4.5pav2004-10-148-8/+16 * zh-iiimf-le-xcin --> ports/chinese/iiimf-le-xcinpav2004-10-141-0/+1 * Add iiimf-le-xcin, a IIIMF language engine which ported from a popularpav2004-10-1410-0/+193 * Update to version 1.1.1markus2004-10-146-56/+364 * Update to 2.0.2lofi2004-10-142-5/+5 * zh-iiimf-le-ude --> ports/chinese/iiimf-le-udepav2004-10-141-0/+1 * Add iiimf-le-ude, User Defined Engine, SunIM based Simplified Chinese conversionpav2004-10-146-0/+74 * zh-iiimf-le-chewing --> ports/chinese/iiimf-le-chewingpav2004-10-141-0/+1 * Add iiimf-le-chewing, an Intelligent Chinese Phonetic Input Method for UNIX.pav2004-10-146-0/+67 * - Update to r12.0.1pav2004-10-145-39/+43 * zh-libchewing --> ports/chinese/libchewingpav2004-10-141-0/+1 * Add libchewing, an Intelligent Chinese Phonetic Input Method for UNIX.pav2004-10-145-0/+52 * iiimf-gnome-im-switcher --> ports/textproc/iiimf-gnome-im-switcherpav2004-10-141-0/+1 * Add iiimf-gnome-im-switcher.pav2004-10-148-0/+137 * Document vulnerability in freeradius.josef2004-10-141-0/+26 * Use OSVERSION check instead of exists().krion2004-10-141-4/+4 * - Document DoS in Xerces-C++.simon2004-10-141-1/+31 * - rxvt-unicode 4.0 change language name "cn" to "zh";thierry2004-10-143-8/+31 * - Update to 1.03lth2004-10-142-4/+3 * It turns out that lesstif has libXpm sneakily embedded. There are atnectar2004-10-141-1/+5 * - Security Fixdinoex2004-10-142-1/+1159 * - Update to r12.0.1pav2004-10-1416-120/+206 * - drop maintainershipdinoex2004-10-142-2/+2 * Document XSS in wordpress.simon2004-10-141-0/+24 * - drop maintainershipdinoex2004-10-143-3/+3 * - drop maintinershipdinoex2004-10-147-9/+9 * - drop maintainershipdinoex2004-10-142-2/+2 * - Unbreak under Perl 5.005_03lth2004-10-143-27/+8 * Document integer overflows in libtiff.nectar2004-10-141-0/+25 * - Update to 0.07lth2004-10-141-7/+1 * - It was not forgotten, as no port package could be build!dinoex2004-10-141-1/+1 * Chase the taglib shared lib versionmarkus2004-10-141-1/+1 * Bump PORTREVISION for the last commit since it re-enables remote executionmarcus2004-10-149-9/+9 * - update to 1.1.31jmz2004-10-143-9/+10 * Add a patch that was forgotten in the 1.0.1.p update.marcus2004-10-149-0/+90 * Update to version 1.3markus2004-10-143-4/+9 * Fix build with Perl 5.00503.marcus2004-10-1418-0/+126 * - Update to 1.19lth2004-10-143-21/+4 * - Update to r12.0.1pav2004-10-145-43/+34 * - Update to r12.0.1pav2004-10-148-62/+73 * Improve handling of installed ports whose origin can't be determined.des2004-10-144-8/+28 * - Update to r12.0.1pav2004-10-147-105/+78 * Mark IGNORE if /usr/sbin/flowctl already exists in base system.krion2004-10-141-0/+4 * iiimf-x-lib --> ports/textproc/iiimf-x-libpav2004-10-141-0/+1 * Add iiimf-x-lib, X Client Framework for Internet/Intranet Input Methodpav2004-10-149-0/+147 * - Update to r12.0.1pav2004-10-1410-60/+138 * Update to 1.4.11erwin2004-10-142-3/+3 * Update to 1.34erwin2004-10-142-3/+3 * Update to 0.04erwin2004-10-142-3/+3 * Update to 3.14erwin2004-10-142-3/+3 * Update to 0.20erwin2004-10-142-3/+3 * - Update to r12.0.1pav2004-10-145-36/+50 * Update to 0.13erwin2004-10-142-3/+3 * - Update to r12.0.1pav2004-10-146-66/+59 * p5-Lingua-StopWords --> ports/textproc/p5-Lingua-StopWordstobez2004-10-141-0/+1 * Add p5-Lingua-StopWords, a Perl module providing lists of stopwords fortobez2004-10-145-0/+52 * - Update to r12.0.1pav2004-10-143-10/+11 * Update to 0.94erwin2004-10-142-3/+3 * Update to 1.15erwin2004-10-142-3/+3 * - Update to 0.76.22erwin2004-10-143-10/+7 * Drop maintainershiperwin2004-10-143-3/+3 * - Document a CUPS local information disclosure.simon2004-10-141-0/+32 * Update to 3.05mat2004-10-142-3/+3 * Document a vulnerability in Zinf (freeamp).josef2004-10-141-0/+27 * Fix build with the new libexif.marcus2004-10-141-0/+24 * Update to DAT 4398jeh2004-10-142-3/+3 * Oops, I forgot a new patch.nork2004-10-142-0/+11 * Remove tuwien.ac.at from MASTER_SITE_{GNOME,GNU,GNUPG}. It's beenadamw2004-10-141-3/+0 * - Update to 1.2.10sergei2004-10-143-53/+16 * - bump PORTEPOCHeik2004-10-141-0/+1 * Fix build when PORTSDIR is read-only.marcus2004-10-144-0/+8 * Update to 0.8.2.kwm2004-10-146-10/+28 * - Update to 20041012pav2004-10-142-3/+3 * - Update to 4.4.7pav2004-10-142-3/+3 * - Update to 4.2.2 [1]sergei2004-10-142-6/+6 * Document libtiff RLE decoder issues.nectar2004-10-141-0/+26 * o Update to -> 0.59mich2004-10-142-3/+3 * Update to 2.6.2.adamw2004-10-143-4/+6 * - Remove USE_GCC=3.4, it's not neededpav2004-10-131-3/+2 * - Fix MAKE_ENV, respect CXXpav2004-10-131-1/+1 * - Update to 0.1.6pav2004-10-132-3/+3 * Update to 1.2.1.kwm2004-10-133-4/+26 * Add missed category in previous commit and unbreak INDEX (again).erwin2004-10-131-1/+1 * - replace pkg-plist with INFO and PLIST_FILESleeym2004-10-133-10/+5 * Update to 1.14krion2004-10-132-3/+3 * Use size_t insead of int to get uptime in a correct way on amd64krion2004-10-133-4/+35 * - update to 0.27clsung2004-10-132-3/+3 * - update to 0.22clsung2004-10-133-6/+26 * Update to version 1.1markus2004-10-133-16/+3 * - update to 0.48, required by svk 0.22clsung2004-10-132-3/+3 * Remove kimagemapeditor, which is now part of the kdewebdev portmarkus2004-10-139-108/+1 * Remove kolourpaint, which is now part of the kdegraphics3 portmarkus2004-10-137-172/+1 * Update to 1.4krion2004-10-138-101/+31 * p5-Class-AlzaboWrapper --> ports/devel/p5-Class-AlzaboWrappermat2004-10-131-0/+1 * Add p5-Class-AlzaboWrapper 0.06, higher level wrapper around Alzabo.mat2004-10-135-0/+53 * p5-Alzabo-GUI-Mason --> ports/devel/p5-Alzabo-GUI-Masonmat2004-10-131-0/+1 * Add p5-Alzabo-GUI-Mason 0.1, a GUI for Alzabo using Mason.mat2004-10-137-0/+183 * Retire audio/libvorbis-aotuv.knu2004-10-135-44/+1 * Update to version 0.99markus2004-10-138-26/+510 * - Use ${WWWOWN} and ${WWWGRP} for apache's user. (instead of harcodedclement2004-10-134-6/+10 * Update to 1.33krion2004-10-132-3/+3 * - Update to 2.01clsung2004-10-13