aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-tree.c8
-rw-r--r--widgets/table/e-tree.h10
2 files changed, 12 insertions, 6 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index d50eef2b3b..26a6751b75 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -1738,7 +1738,7 @@ e_tree_get_tooltip (ETree *et)
}
gboolean
-e_tree_find_next (ETree *et, gboolean forward_direction, gboolean wrap, ETreePathFunc func, gpointer data)
+e_tree_find_next (ETree *et, ETreeFindNextParams params, ETreePathFunc func, gpointer data)
{
ETreePath cursor;
ETreePath found;
@@ -1746,7 +1746,7 @@ e_tree_find_next (ETree *et, gboolean forward_direction, gboolean wrap, ETreePat
cursor = e_tree_get_cursor (et);
cursor = e_tree_sorted_model_to_view_path (et->priv->sorted, cursor);
- found = e_tree_model_node_find (E_TREE_MODEL (et->priv->sorted), cursor, NULL, forward_direction, func, data);
+ found = e_tree_model_node_find (E_TREE_MODEL (et->priv->sorted), cursor, NULL, params & E_TREE_FIND_NEXT_FORWARD, func, data);
if (found) {
e_tree_table_adapter_show_node (et->priv->etta, found);
@@ -1755,8 +1755,8 @@ e_tree_find_next (ETree *et, gboolean forward_direction, gboolean wrap, ETreePat
return TRUE;
}
- if (wrap) {
- found = e_tree_model_node_find (E_TREE_MODEL (et->priv->sorted), NULL, cursor, forward_direction, func, data);
+ if (params & E_TREE_FIND_NEXT_WRAP) {
+ found = e_tree_model_node_find (E_TREE_MODEL (et->priv->sorted), NULL, cursor, params & E_TREE_FIND_NEXT_FORWARD, func, data);
if (found && found != cursor) {
e_tree_table_adapter_show_node (et->priv->etta, found);
diff --git a/widgets/table/e-tree.h b/widgets/table/e-tree.h
index f42e22eb87..fea53eb184 100644
--- a/widgets/table/e-tree.h
+++ b/widgets/table/e-tree.h
@@ -281,9 +281,15 @@ void e_tree_load_expanded_state (ETree *et,
char *filename);
int e_tree_row_count (ETree *et);
GtkWidget *e_tree_get_tooltip (ETree *et);
+
+typedef enum {
+ E_TREE_FIND_NEXT_BACKWARD = 0,
+ E_TREE_FIND_NEXT_FORWARD = 1 << 0,
+ E_TREE_FIND_NEXT_WRAP = 1 << 1
+} ETreeFindNextParams;
+
gboolean e_tree_find_next (ETree *et,
- gboolean forward_direction,
- gboolean wrap,
+ ETreeFindNextParams params,
ETreePathFunc func,
gpointer data);
d>Fix typos in COMMENTcs2012-07-255-5/+5 * For ports maintained by ports@ where pkgconfig is one of the USE_GNOME depsdougb2012-07-232-2/+6 * - Add LICENSEsperber2012-07-202-7/+49 * This is a static version of the libcurl library for use with lang/hiphop-phpmm2012-07-185-0/+159 * - Prepare for slave port ftp/curl-hiphopsunpoet2012-07-181-4/+9 * - Fix package name detectionaz2012-07-181-1/+1 * - Set MAKE_JOBS_SAFEtabthorpe2012-07-181-0/+2 * Unbreak ProFTPD on sparc [1].mm2012-07-173-605/+250 * Rename old patch-aa to a better namegarga2012-07-171-0/+0 * - Update MASTER_SITESsunpoet2012-07-093-23/+31 * Update to 4.3.8martymac2012-07-062-3/+3 * - Remove SITE_PERL from *_DEPENDSaz2012-06-301-1/+1 * - Update to 0.36sunpoet2012-06-292-5/+5 * - Remove SITE_PERL from *_DEPENDSaz2012-06-292-6/+6 * - Update to 0.7.0lwhsu2012-06-294-21/+20 * update math/R to 2.15.1, switch to the new options format, andbf2012-06-271-1/+1 * - Fix utmpx for FreeBSD 9+lwhsu2012-06-274-37/+88 * - reset MAINTAINERdinoex2012-06-262-2/+2 * - Update to 1.2.0sylvio2012-06-252-12/+13 * - Update to 2.4sylvio2012-06-253-17/+13 * s/X11BASE/LOCALBASE/, or equivalent.dougb2012-06-251-1/+1 * 2012-06-16 ftp/IglooFTP: No longer supportedbeech2012-06-1913-593/+0 * - Update to 1.56sunpoet2012-06-152-11/+11 * Convert to new options frameworkbapt2012-06-122-28/+28 * Update to 4.3.7martymac2012-06-122-4/+3 * - Un-version LIB_DEPENDSmartymac2012-06-111-16/+10 * - Convert all remaining instances of BUILD_DEPENDS=${RUN_DEPENDS} orswills2012-06-114-4/+4 * - update to 0.3dinoex2012-06-082-3/+3 * Remove wu-ftpd+ipv6. The upstream disapear and distfile is no more available.sumikawa2012-06-0723-582/+0 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-062-4/+2 * - Remove SITE_PERL from *_DEPENDSaz2012-06-041-1/+1 * - Update The Glorious Glasgow Haskell Compiler to version 7.4.1pgj2012-06-041-1/+1 * - Remove SITE_PERL from *_DEPENDSaz2012-06-032-3/+3 * - update png to 1.5.10dinoex2012-06-0114-12/+14 * - Update to 0.22jadawin2012-05-312-3/+3 * - add MASTER_SITE_GENTOOdinoex2012-05-281-1/+3 * - Marked BROKEN. Does not compile on FreeBSD 7.x and 8.xsylvio2012-05-261-1/+7 * - update to 3.0.0dinoex2012-05-253-22/+39 * Mark DEPRECATED No longer supported upstreambeech2012-05-171-0/+3 * readd php 5.3.13 and all its modules as php53*flo2012-05-163-0/+30 * - Update to 3.8sylvio2012-05-152-3/+3 * Update autoconf to 2.69 and automake to 1.12ade2012-05-123-13/+15 * 2012-05-10 archivers/php4-bz2: php4 is EOLedbapt2012-05-123-37/+0 * - Update to version 1.1.3 [1]pawel2012-05-084-78/+16 * - Update to 3.7sylvio2012-05-082-3/+3 * Pass maintainership of almost of my "p5-*" ports to "perl@".skv2012-05-071-1/+1 * - Use bsd.port.options.mk for option handlingsunpoet2012-05-071-3/+3 * - update to 1.0.36bapt2012-05-072-3/+3 * - update math/R-cran-psych to 1.2.1 [1]bf2012-05-051-1/+1 * - Update to 0.9.8madpilot2012-05-022-14/+6 * Update to 4.3.6martymac2012-04-272-3/+3 * Update to version 3.2.5.obrien2012-04-182-3/+3 * - Update to 0.34culot2012-04-162-3/+6 * Set the expiration date for all ports which depend upon linux_base-fc4 tonetchild2012-04-151-0/+2 * - drop option WITH_RC_NGdinoex2012-04-141-6/+2 * Remove expired port:rene2012-04-146-94/+0 * 1: Upgrade libmemcached to 1.0.6.vanilla2012-04-141-2/+2 * - chase libmemcached shared library bump 8=>9jgh2012-04-141-1/+1 * php4 is EOLed, let's deprecate itbapt2012-04-122-0/+6 * Update to 2.0.2mm2012-04-112-3/+3 * - Respect STRIP/LDFLAGSmiwi2012-04-111-2/+2 * Drop maintainershipgarga2012-04-071-1/+1 * - Revert ports/165605 as requested by portmgr@pgollucci2012-03-143-4/+26 * - Update to 7.0.d.kuriyama2012-03-113-3/+4 * Fix issue with select().cy2012-03-112-1/+19 * Fix select() issue.cy2012-03-112-1/+19 * - Remove ports that only work with < perl 5.12 (devel/p5-B-Size, devel/p5-Dev...pgollucci2012-03-093-26/+4 * update math/R to 2.14.2, and adjust dependent portsbf2012-03-041-0/+1 * - Update to 7.24.0sunpoet2012-03-038-158/+99 * The previous patch was supposed to fix vsftpd so that it would look for theflo2012-02-291-3/+2 * - Take maintainershipsunpoet2012-02-262-2/+2 * Mark broken: define an @exec depending on %F and %B before any files defined.bapt2012-02-241-0/+2 * - Update to 0.7.17pgollucci2012-02-212-3/+3 * - Update to 0.21sunpoet2012-02-212-3/+3 * - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-1/+1 * Fix includes/libs if using WITH_PCREmm2012-02-141-0/+2 * Bump pcre library dependency due to 8.30 updatemm2012-02-141-1/+2 * Remove dependancy on net/socks5 in preperation for that port's removal fromjpaetzel2012-02-131-5/+1 * Remove the (hopefully) long unused SOCKS5 option, in preparationjpaetzel2012-02-132-17/+1 * - Please welcome GHC 7.0.4pgj2012-02-131-0/+1 * - Update to 1.91-1tota2012-02-102-3/+3 * Update to 4.3.5martymac2012-02-012-3/+3 * Fix typo in Makefile - add missing double quotation mark to MOD_WRAP_FILEmm2012-01-291-1/+1 * Fix typo in pkg-plist and mod_sql_sqlite packing listmm2012-01-272-6/+6 * New module slave databases/proftpd-mod_sql_mysql replaces ftp/proftpd-mysqlmm2012-01-262-16/+0 * Update proftpd-mysql dependency to databases/proftpd-mod_sql_mysqlmm2012-01-261-1/+2 * Update to 1.3.4amm2012-01-266-200/+474 * - Update to 1.9-5tota2012-01-202-4/+3 * update math/R to 2.14.1, and adjust dependent portsbf2012-01-191-0/+1 * - escape shell namesdinoex2012-01-141-1/+1 * In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-1416-16/+16 * Allow build on patched FreeBSD 7.x (FreeBSD-SA-11:07.chroot)mm2012-01-143-3/+37 * - Update to 0.7.16pgollucci2012-01-132-3/+3 * There is no 9.x distfile available for this porteadler2012-01-121-0/+1 * Update to 3.5.3.jsa2012-01-102-3/+3 * - Update to 2.3.5-ext1 [1]scheidell2012-01-103-37/+8 * Update to 4.3.4martymac2012-01-093-3/+52 * - Remove outdated version checkseadler2012-01-091-7/+4 * Repeated words are are hard to to find sometimes.eadler2012-01-081-1/+1 * - Update to 0.20sunpoet2012-01-062-4/+4 * - update to 2.3.5dinoex2012-01-062-3/+3 * Remove obsolete ftp/proftpd-devel port.mm2012-01-059-605/+0 * As of FreeBSD-SA-11:07.chroot, the port now works on both patched andmm2011-12-302-9/+39 * Update to 1.0.35garga2011-12-282-3/+3 * End WWW CPAN URL with a "/"ehaupt2011-12-281-1/+1 * - Remove ../files/patch-Makefile (again)scheidell2011-12-271-14/+0 * - remove duplicate -lwrapdinoex2011-12-241-2/+2 * Apply a patch after FreeBSD-SA-11:07.chroot which addresses an arbitrarydelphij2011-12-242-1/+20 * - respect CC/CFLAGS/STRIP on vsftpd-extscheidell2011-12-241-5/+6 * Apply a patch after FreeBSD-SA-11:07.chroot which addresses an arbitrarydelphij2011-12-242-0/+20 * Mark as broken on sparc64-9: fails to compile.linimon2011-12-221-0/+4 * Fix clang compile issue.vanilla2011-12-225-45/+55 * - extra files, missed by committerscheidell2011-12-212-0/+45 * - Update to 2.3.4 ext2 [1]scheidell2011-12-213-17/+17 * - One WWW line in pkg-descr will do just finepgollucci2011-12-201-1/+0 * Update to version 3.6.1.demon2011-12-132-3/+3 * Mark as deprecated: part of the base system in all supported FreeBSDlinimon2011-12-121-0/+3 * Update to version 3.6.demon2011-12-062-3/+3 * - Update to 1.54miwi2011-12-042-3/+4 * - update to 5.1brooks2011-12-034-29/+31 * - Update to 1.8-0tota2011-12-032-4/+3 * - Update to 2.3wen2011-11-292-4/+4 * update math/R to 2.14.0, math/R-cran-sp to 0.9-91, and adjustbf2011-11-271-0/+1 * Update to 2.0.1mm2011-11-242-3/+3 * Update to 3.5.2.jsa2011-11-212-3/+3 * - Move PKGNAMEPREFIX defined in each R-cran- related ports Makefiletota2011-11-161-1/+0 * Update to 1.3.3gmm2011-11-112-3/+3 * - Update to 4.3.3martymac2011-11-102-5/+5 * - Remove WITH_FBSD10_FIX, is no longer neededmiwi2011-11-091-1/+0 * Update to 1.0.34garga2011-11-052-3/+3 * - Update to 1.7-0tota2011-11-052-4/+3 * x11-toolkits/gambas2-gb-qt has been broken for over a year.dougb2011-11-013-26/+0 * - Fix build on FreeBSD 10beat2011-10-291-0/+1 * Update to 2.0.0mm2011-10-282-3/+3 * The vast majority of pkg-descr files had the following format when theydougb2011-10-244-4/+3 * Remove more tags from pkg-descr files fo the form:dougb2011-10-243-9/+0 * - Return my ports back to the pool. I was unable to make any fixes tostas2011-10-241-1/+1 * - Update to 0.19jadawin2011-10-202-3/+3 * Update to 2.0.0RC2mm2011-10-192-3/+3 * As previously advertised, complete removal of vulnerable ports thatdougb2011-10-155-74/+0 * Gollem is a web-based File Manager, providing the ability to fully managemm2011-10-124-0/+53 * update math/R to 2.13.2, and adjust dependent portsbf2011-10-111-0/+1 * Fix distinfo and its creationmm2011-10-062-2/+6 * Update to version 3.5.1.demon2011-10-032-3/+3 * Update to 1.3.3fmm2011-10-012-7/+3 * Mark FORBIDDEN the remaining ports that are vulnerable for more thandougb2011-09-261-0/+3 * Drop maintainership as I'm not using this software anymore.novel2011-09-251-1/+1 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-2417-32/+21 * - Update to 0.6.0sunpoet2011-09-233-18/+21 * - Space/Tab twiddlesunpoet2011-09-221-9/+9 * - Reassign to the heaptabthorpe2011-09-221-1/+1 * Fix pkg-plist: do not remove lib/charset.aliasvd2011-09-212-3/+1 * Fix compilation with SSL.vd2011-09-201-1/+1 * Update to 4.3.2martymac2011-09-204-22/+12 * Upgrade ftp/wget from 1.12 to 1.13.4vd2011-09-2013-184/+5 * - Update to 1.6-10tota2011-09-062-3/+3 * 2011-09-01 deskutils/gkrellm-gtodo: No more public distfilesbapt2011-09-0114-274/+0 * Update to 3.5.1.jsa2011-08-312-7/+6 * - Add a new port: ftp/R-cran-RCurltota2011-08-294-0/+36 * llnlxftp has been resurrected.cy2011-08-281-0/+1 * Resurrect llnlxftp. Distfile was moved to a new LLNL site.cy2011-08-285-0/+83 * - Fix MASTER_SITESmiwi2011-08-261-1/+1 * Chase libnotify, libproxy and webkit-gtk2 shlib changes, and fix build where ...kwm2011-08-242-2/+13 * - Add p5-SOAP-Transport-FTP 0.711sunpoet2011-08-235-0/+46 * - USE_APACHE= /1.3/13/ /2.0/20/ /2.2/22/ohauer2011-08-211-1/+1 * - update to 0.18bapt2011-08-172-3/+3 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-122-2/+1 * llnlxftp was not actually restored from Attic. Remove it to make pointyhatlinimon2011-08-081-1/+0 * - Update to 0.3.8;romain2011-08-064-9/+14 * - update MASTER_SITEdinoex2011-08-051-1/+1 * Deprecate some ports where I can't find distfiles and upstreambapt2011-08-032-0/+6 * - Update to 3.6sylvio2011-07-282-3/+3 * - Update to 3.5sylvio2011-07-282-3/+3 * Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-211-1/+1 * Resurrect ftp/mirror.cy2011-07-181-0/+1 * Resurrect this port. Adjust master sites and assume maintainership.cy2011-07-189-0/+463 * Bring this port back from the dead and assume maintainership of it.cy2011-07-185-0/+81 * Bring back ftp/llnlxdir and ftp/llnlxftp back from the dead.cy2011-07-181-0/+2 * Set maintainer of Horde ports to horde@FreeBSD.orgmm2011-07-151-1/+1 * Fix build with clangarved2011-07-141-0/+2 * - Remove USE_GZIP=yes since it is defaultwen2011-07-071-1/+0 * - Reassign to the heaptabthorpe2011-07-053-3/+3 * - Update to 1.3.7ashish2011-07-042-4/+3 * - Chase the libgcrypt shared lib versionswills2011-07-031-1/+2 * Update to 4.3.1martymac2011-06-293-9/+8 * Update to version 3.5demon2011-06-282-3/+4 * - Update to 0.7.15swills2011-06-262-3/+3 * Mark broken some ports with unfetchable distfilesbapt2011-06-171-0/+2 * Local presence of sqlite3.h let this neww depend slip in unnoticed.jsa2011-06-111-0/+1 * Update to 3.5.0.jsa2011-06-082-4/+3 * Chase security/gnutls update and add an UPDATING entry.novel2011-06-066-7/+9 * Remove expired ports:rene2011-06-027-123/+0 * Bump PORTREVISION of all ports dependent on lang/ghc as duringashish2011-05-261-0/+1 * - Fix build on OSVERSION > 900035 by disabling use of posix_fallocate()martymac2011-05-231-1/+4 * - fix build on FreeBSD 9.0-CURRENTdinoex2011-05-222-8/+13 * - Update to 3.4sylvio2011-05-213-5/+34 * Update to 4.2.3martymac2011-05-162-3/+3 * - Update to 1.0.32garga2011-05-102-4/+3 * - Please welcome GHC 7.0.3ashish2011-05-093-25/+7 * Update to 1.3.3emm2011-05-033-25/+3 * Remove textedit and ftptool which depends on itbapt2011-05-038-730/+0 * Remove unmaintained expired ports from ftpbapt2011-05-0265-1750/+0 * - Mark BROKEN on 9-CURRENT: does not compilepav2011-05-021-3/+4 * Update to version 3.4.3.demon2011-04-252-3/+3 * Update to 4.2.2martymac2011-04-222-3/+3 * - Reassign to the heaptabthorpe2011-04-161-1/+1 * Update to 3.4.0.jsa2011-04-073-8/+5 * - Bump portrevisions on all ocaml libraries, as it appears that compiledstas2011-04-061-0/+1 * Garbage collect expired portsrene2011-04-053-42/+0 * - update to 0.17bapt2011-03-252-3/+3 * - update to 0.32bapt2011-03-252-3/+3 * - Add LICENSE knob(s)mm2011-03-231-0/+3 * Update to 4.2.0martymac2011-03-222-3/+3 * - Get Rid MD5 supportmiwi2011-03-1996-109/+0 * - update to 2.6lwhsu2011-03-182-3/+3 * Deprecate unmaintained ports from ftp where upstream disapear and/orbapt2011-03-1610-0/+30 * Add optional dependency to libidnvd2011-03-151-2/+10 * - Bump PORTREVISION to chase the update of dns/libidnwen2011-03-142-2/+4 * - Update to 0.6.0lwhsu2011-03-053-14/+29 * - update to 2.5lwhsu2011-03-054-28/+15 * Add a more reliable mirrors for fc4 and f10 linux emulation ports.ehaupt2011-03-031-0/+1 * Take maintainershipbeech2011-03-031-1/+1 * Return these ports to the pool.linimon2011-03-032-2/+2 * Deprecate all non-default Fedora based linux_base respectively linux-fx-*netchild2011-02-281-0/+3 * - Update to 0.7.12wen2011-02-282-3/+3 * - Kick ftp/junglemoneky to fix the index aftermiwi2011-02-287-109/+0 * - Mark as DEPRECATED and set EXPIRATION_DATE due it's no longer maintained si...araujo2011-02-271-0/+3 * - Reassign ports to heaptabthorpe2011-02-273-3/+3 * Chase after net/openldap24-server update.delphij2011-02-25