After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 205616 - UI: Filter dialog needs top/bottom buttons
UI: Filter dialog needs top/bottom buttons
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.4.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[filters]
: 223465 312774 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-07-26 22:50 UTC by Joakim Ziegler
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Filter patch to add top/bottom targets (3.71 KB, patch)
2005-08-07 04:51 UTC, Matthew Hall
none Details | Review
filter manager patch to add top/buttom buttons (4.73 KB, patch)
2005-09-25 00:50 UTC, André Klapper
none Details | Review
top/bottom filter target (4.73 KB, patch)
2005-09-26 20:50 UTC, Matthew Hall
accepted-commit_now Details | Review

Description Joakim Ziegler 2001-07-26 22:50:15 UTC
The filter dialog really, really needs top and bottom buttons for moving
filters. When you have more than a hundred filters (lots of lists) like I
do, and you want to filter lists first, and then people, for instance, and
new filters are always added to the bottom of the list, adding a new
mailing list filter involves more than a hundred mouse clicks. My hand was
extremely tired the first time I set up Evolution to handle all my lists.
Comment 1 André Klapper 2004-07-26 23:14:27 UTC
*** bug 223465 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2005-02-28 22:58:07 UTC
related to DnD re-ordering, see bug 200975.
Comment 3 André Klapper 2005-08-06 22:10:54 UTC
adding filters keyword
Comment 4 André Klapper 2005-08-06 22:12:34 UTC
*** Bug 312774 has been marked as a duplicate of this bug. ***
Comment 5 Matthew Hall 2005-08-07 04:51:51 UTC
Created attachment 50339 [details] [review]
Filter patch to add top/bottom targets

Considering how old this bug is I thought i'd have a go myself.

15 minutes later (and an hour or so to compile and test with evo) we have a
test implementation.

One note, there is definitely a better way to implement the list count of the
filter view (ie. use g_list_length or similar) but I haven't deconstructed how
the RuleEditor view works so I just used a similar count routine used elsewhere
in filter/rule-editor.c. One easy way I can think of doing this is to add an
'int count' to the RuleEditor struct and re-count the list on
initialisation/add/delete, etc.
Comment 6 André Klapper 2005-09-25 00:36:03 UTC
targetting this to 2.5 to force a decision.

matthew: thanks for the patch, if you ever plan to write another patch for
evolution, please submit it in form of a unified diff (cvs diff -u -p),
therefore setting patch status to "needs-work".
thanks in advance. ;-)
Comment 7 André Klapper 2005-09-25 00:50:30 UTC
Created attachment 52610 [details] [review]
filter manager patch to add top/buttom buttons

i took matthew's patch and put it into the correct format. this is untested
from my side; hopefully it's also okay for matthew if i put him and his mail
address into the changelog? matthew, a short "OK" would be great... :-)
Comment 8 Matthew Hall 2005-09-25 08:55:32 UTC
Yep, this is fine with me.
Thanks andre.
Comment 9 Srinivasa Ragavan 2005-09-26 06:32:36 UTC
Hmm one issue. Try moving a rule from top to bottom using bottom its not
working. It works otherwise. A minor bug with the code.
Comment 10 parthasarathi susarla 2005-09-26 10:43:34 UTC
changed the status of the patch to needs-rework based on the last comment
Comment 11 Matthew Hall 2005-09-26 20:50:10 UTC
Created attachment 52702 [details] [review]
top/bottom filter target

Fixed the bottom filter target bug. 
As simple as the difference between '>' and '>=' (Doh!)
Thanks, Matt.
Comment 12 André Klapper 2005-09-26 21:00:07 UTC
man, this is workflow. cool. also thanks.

srag, let's get this into 2.5's HEAD. :-)
Comment 13 parthasarathi susarla 2005-09-27 13:08:29 UTC
Looks fine now. Andre, Matt, Thanks for the patch 
Comment 14 André Klapper 2005-12-14 23:41:23 UTC
ok, this is not workflow. sigh...
HELLO?! PLEASE COMMIT. thanks. adding partha to CC.
Comment 15 André Klapper 2005-12-20 18:26:17 UTC
was pissed by waiting for this, so talked to srag on #evolution irc channel today and he said "go ahead and commit to CVS".

matthew, i just committed this to HEAD so it will be included in evolution 2.5.4 and the upcoming stable 2.6:
http://cvs.gnome.org/viewcvs/evolution/filter/filter.glade?r1=1.24&r2=1.25
http://cvs.gnome.org/viewcvs/evolution/filter/rule-editor.c?r1=1.65&r2=1.66

a big personal thanks for the code since i was annoyed by those missing buttons all those years.  ...and now: champagne! :-)
Comment 16 Matthew Hall 2005-12-20 20:21:35 UTC
Sweet. Thanks for pushing this Andre.

Merry Xmas :)
Comment 17 André Klapper 2005-12-21 10:02:19 UTC
hehe. yeah, i partially have become "bugging master" (veerapuram invented that term). ;-)

merry christmas also to you, matthew, and have a nice new year. :-)