aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-07 14:00:15 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-07 14:00:15 +0800
commit5304dda169dd9778def88176572bb76eeaf0883b (patch)
treeeda6a760e5bdedd99ab23b58c1b382dca585840d /mail
parent622ee65eb612e8f492b17538df95ed2e2d709466 (diff)
downloadgsoc2013-evolution-5304dda169dd9778def88176572bb76eeaf0883b.tar.gz
gsoc2013-evolution-5304dda169dd9778def88176572bb76eeaf0883b.tar.zst
gsoc2013-evolution-5304dda169dd9778def88176572bb76eeaf0883b.zip
Made this handle being given a row that's outside the range better.
2001-07-07 Christopher James Lahey <clahey@ximian.com> * message-list.c (message_list_select): Made this handle being given a row that's outside the range better. svn path=/trunk/; revision=10881
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/message-list.c13
2 files changed, 14 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6e09d51153..943c291fa9 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-07 Christopher James Lahey <clahey@ximian.com>
+
+ * message-list.c (message_list_select): Made this handle being
+ given a row that's outside the range better.
+
2001-07-06 Jason Leach <jleach@ximian.com>
[Fix bug #1100, default account is stored strangely]
diff --git a/mail/message-list.c b/mail/message-list.c
index f5fb85c34a..583524821d 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -382,18 +382,23 @@ message_list_select (MessageList *message_list, int base_row,
break;
case MESSAGE_LIST_SELECT_NEXT:
last = e_tree_row_count (message_list->tree);
+ if (last <= base_row)
+ return;
break;
default:
g_warning("Invalid argument to message_list_select");
return;
}
- if (base_row == -1)
- base_row = e_tree_row_count(message_list->tree) - 1;
-
+ /* If it's -1, we want the last view row, not the last model row. */
/* model_to_view_row etc simply dont work for sorted views. Sigh. */
- vrow = e_tree_model_to_view_row (et, base_row);
+ if (base_row == -1)
+ vrow = e_tree_row_count(message_list->tree) - 1;
+ else
+ vrow = e_tree_model_to_view_row (et, base_row);
+ if (base_row <= -1)
+ return;
/* This means that we'll move at least one message in 'direction'. */
if (vrow != last)
vrow += direction;
n6/files/ini-1.3.8&id=22f3ab212f83c9d562ca34a78660a6e9fb5fecdd'>eric6 ports: Update to version 6.0.4.bsam2015-04-091-2/+2 * Make EGD conditionalrodrigo2015-04-043-0/+16888 * www/MT,russian/MT: Upgrade version 5.2.11 => 5.2.12marino2015-04-041-1/+1 * Update "BSD" licensefeld2015-03-241-1/+1 * Make fonts repecting XDGbapt2015-03-223-37/+28 * Clean up the rest of the perl@ Makefiles a bit.adamw2015-03-141-3/+3 * russian/wordpress: update 4.1 -> 4.1.1robak2015-03-132-3/+3 * Update KDE SC to 4.14.3alonso2015-03-121-2/+2 * Eric6 localization files.bsam2015-03-083-0/+9 * Remove Author from pkg-descr and white space fixesbapt2015-03-033-4/+0 * - Update to 4.3.6.jkim2015-02-211-4/+4 * Unbreak on headantoine2015-02-154-46/+13 * - Bump PORTREVISION. lzarus has been updatedacm2015-01-111-5/+28 * - Update to 5.2.11sunpoet2015-01-0217-199/+1 * - Update to 4.1wen2014-12-212-4/+3 * cleanup plistbapt2014-12-213-3/+0 * Update to 4.3.5.jkim2014-12-191-4/+4 * Update to 4.3.4.jkim2014-11-271-4/+4 * Change the way Perl modules are installed, update the default Perl to 5.18.mat2014-11-2612-10/+11 * - Drop dirrm* from plistsamdmi32014-11-227-24/+0 * Upgrade to 4.0.1.vanilla2014-11-222-4/+4 * Fix the generation of Fontmap.diff, which I broke earlier, when trying tomi2014-11-191-11/+10 * Cleanup plistantoine2014-11-1217-87/+3 * Update to 4.3.3.jkim2014-11-011-4/+4 * Cross-platform emulator of Elektronika RPN programmable calculatoramdmi32014-10-294-0/+51 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-193-172/+32 * Update to 4.3.2.jkim2014-10-172-5/+4 * Add missing dependencies and CPE data.des2014-10-151-1/+8 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-114-2/+4 * eric4 ports: update to version 4.5.24.bsam2014-09-101-2/+2 * - Update to 4.0sunpoet2014-09-062-3/+3 * Change MAINTAINER to bz-ports@ as discussed with bugzilla@ (now bz-ports@)flo2014-09-061-1/+1 * Allow staging as a regular userantoine2014-09-061-0/+1 * Remove non staged ports without pending PR from russianbapt2014-09-0232-1215/+0 * More unzip removalantoine2014-08-181-1/+0 * Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-162-1/+2 * Merge 4 unzip slave ports into archivers/unzip as non-default optionsmarino2014-08-152-93/+0 * russian/wordpress: update to 3.9.2wg2014-08-092-3/+3 * Mark BROKEN: fails to installantoine2014-08-091-0/+2 * www/MT, russian/MT: Upgrade version 5.2.9 => 5.2.10marino2014-08-0417-1/+200 * Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-305-5/+5 * russian/xcode:makc2014-07-291-3/+4 * Reset maintainership for ports not staged with no pending PRbapt2014-07-254-4/+4 * Fix build with texlivebapt2014-07-221-1/+1 * Remove indefinite articles and trailing periods from COMMENT, plusolgeni2014-07-172-2/+2 * remove NO_STAGE.vanilla2014-07-071-1/+0 * Update to version 4.5.23.bsam2014-06-301-2/+2 * - Stage supportmiwi2014-06-281-4/+3 * Update to 4.2.5.jkim2014-06-241-4/+4 * Remove localized bugzilla ports for which the master port expired:rene2014-06-2111-667/+0 * Update distinfo after 4.2.4 updateantoine2014-06-141-4/+4 * - stagify the portrodrigo2014-06-1311-33/+205 * Support staging.mi2014-06-101-2/+1 * - Update to 3.9.1sunpoet2014-05-202-3/+3 * Convert my ports to USES=tarmakc2014-05-124-4/+4 * Update eric4 ports to version 4.5.22.bsam2014-05-121-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.5 and KDE Workspace 4.11.9!makc2014-05-112-2/+3 * Update to 4.1.6.jkim2014-05-071-4/+4 * - update to bugzilla-4.4.4-ru-20140422ohauer2014-05-062-3/+3 * - Update to 3.9sunpoet2014-04-273-25/+12 * - update russian bugzilla language templatesohauer2014-04-236-15/+15 * - Update to 3.8.2sunpoet2014-04-132-5/+3 * Eric4 ports: update to version 4.5.21.bsam2014-04-061-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!makc2014-04-032-3/+3 * Remove some expired xmms ports (abandonware, unmaintained):antoine2014-03-232-16/+0 * - Support stagingehaupt2014-03-183-14/+8 * Update to version 4.5.20.bsam2014-03-141-2/+2 * - Support stagingehaupt2014-03-131-7/+4 * Convert r* to USES=zipbapt2014-03-114-4/+4 * KDE/FreeBSD team presents KDE SC 4.12.3 and KDE Workspace 4.11.7!makc2014-03-052-6/+6 * Update to 4.1.5. It is partially based on the following PR.jkim2014-02-261-4/+4 * Deprecate and set expiration date for xmms stuff that is unmaintainedantoine2014-02-241-0/+2 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.2 and KDE Workspace 4.11.6!makc2014-02-184-42/+52 * - Stage supportmiwi2014-02-181-8/+4 * - Support stagingehaupt2014-02-061-4/+7 * - Update to 3.8.1sunpoet2014-02-042-3/+3 * - Stage supportmiwi2014-02-031-4/+2 * - Update gimp-help ports to 2.8.1. Polish translation has been removed, newmakc2014-02-011-3/+3 * - add stage supportaz2014-01-3010-16/+6 * Update maintainer email addressrodrigo2014-01-291-1/+1 * Remove ispell which is deprecated for long, consider using aspell instead or ...bapt2014-01-298-106/+0 * - Stage supportmiwi2014-01-261-1/+0 * Fix properties on pkg-plistbapt2014-01-223-3/+0 * Stage supportantoine2014-01-171-1/+0 * . update to version 4.5.18;bsam2014-01-081-2/+2 * Fix packaging after MASTER port was stagedantoine2014-01-041-1/+0 * - Update to 5.2.9.rakuco2013-12-301-3/+0 * - Update to 3.8sunpoet2013-12-272-3/+3 * Update to version 4.5.17.bsam2013-12-251-2/+2 * Master site does not allow anon ftp access for the reason unknown,ache2013-12-201-1/+2 * - Update Calligra Suite to 2.7.5.avilla2013-12-172-3/+2 * - update/add russian bugzilla templatesohauer2013-12-1410-8/+341 * - Add LICENSEsunpoet2013-12-061-0/+2 * - Fix index spam and bmake warningbdrewery2013-11-241-1/+1 * . USE_GMAKE -> USES=gmake;bsam2013-11-181-3/+2 * - Update to 20131101sunpoet2013-11-183-6/+8 * Fix stagingbapt2013-11-151-1/+1 * . Improve spelling a little.mi2013-11-144-19/+26 * - Update to 3.7.1vg2013-11-122-3/+3 * Update to version 4.5.15.bsam2013-11-111-2/+2 * - Update MASTER_SITES, WWWmakc2013-11-1016-32/+32 * . remove a standard option description (MOTIF);bsam2013-11-071-3/+2 * Stagifybapt2013-11-041-5/+4 * Stagifybapt2013-11-041-6/+5 * Support stage, use bsdtar to extractbapt2013-11-041-4/+3 * Stagifybapt2013-11-041-1/+0 * - Add stage supportswills2013-10-302-2/+0 * - Update to 3.7sunpoet2013-10-262-3/+3 * - Update to 4.0.6.jkim2013-10-262-5/+4 * multimedia/xmms:tijl2013-10-222-10/+2 * - adjust include pathohauer2013-10-181-1/+1 * - update to latest release [1]ohauer2013-10-187-5/+3 * Fix at cross-device build (use "ln -sf" rather "ln -f"):bsam2013-10-161-3/+3 * Update to version 4.5.15.bsam2013-10-091-2/+2 * . support staging;bsam2013-10-061-1/+0 * Support staging.bsam2013-09-302-2/+30 * Support stage.bsam2013-09-302-15/+11 * . support stage;bsam2013-09-302-21/+11 * Support staging.bsam2013-09-292-50/+6 * - add STAGE support to bugzilla portsohauer2013-09-272-16/+4 * - Add p5-Text-Hyphen-RUsunpoet2013-09-235-0/+38 * - fix misplaced NO_STAGE in slaveports and ifdefsdinoex2013-09-211-1/+0 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-2150-124/+69 * - Use USES=gmakesunpoet2013-09-171-6/+2 * - Fix build with clang [1]novel2013-09-122-6/+14 * - Update to 3.6.1sunpoet2013-09-122-5/+4 * - convert to the new perl5 frameworkaz2013-09-113-18/+9 * - remove expired bugzilla3 portsohauer2013-08-306-342/+0 * Update to version 4.5.14.bsam2013-08-231-2/+2 * Update to 4.0.5.jkim2013-08-231-4/+4 * - Update to 3.6wen2013-08-062-3/+3 * Missed that one.mat2013-08-031-1/+1 * - Convert to new perl frameworkaz2013-08-031-1/+2 * Fix build with clangbapt2013-08-011-5/+2 * KDE3 and QT3 expired on 2013-07-01, remove these ports.rene2013-07-2710-1996/+0 * - Changed my emailvg2013-07-223-3/+3 * - Update to 3.5.2miwi2013-07-112-3/+3