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 272301 - Add Marcus Bains line to Evolution
Add Marcus Bains line to Evolution
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.0.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 273734 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-07 22:27 UTC by thouis
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Diff to add Marcus Bains line to calendar (against version 2.0.3) (5.41 KB, patch)
2005-02-14 20:04 UTC, thouis
none Details | Review
patch with toggle option for marcus bains line (14.11 KB, patch)
2005-02-14 22:53 UTC, thouis
none Details | Review
Same patch but now for HEAD (17.23 KB, patch)
2005-03-04 12:02 UTC, Philip Van Hoof
none Details | Review
Updated patch for HEAD (21.37 KB, patch)
2005-04-28 17:47 UTC, thouis
accepted-commit_after_freeze Details | Review

Description thouis 2005-02-07 22:27:59 UTC
Distribution: Debian 3.1
Package: Evolution
Priority: Normal
Version: GNOME2.8.1 2.0.3
Gnome-Distributor: Debian
Synopsis: Add Marcus Bains line to Evolution
Bugzilla-Product: Evolution
Bugzilla-Component: Calendar
Bugzilla-Version: 2.0.3
Description:
Evolution needs a Marcus Bains line:

http://people.csail.mit.edu/u/r/rahimi/public_html/marcus-bains-line/

I think it would be easy to add (I added a simple version to the sidebar
of the calendar in about an hour.  I've never worked with evolution
source before).

I'll volunteer to work on this, but could use a pointer to the correct
place to put it.  It looks like the end of e_day_view_main_item_draw()
in e-day-view-main-item.c is a good candidate.

Ray Jones
thouis@mit.edu


Unknown reporter: thouis@mit.edu, changed to bugbuddy-import@ximian.com.
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 thouis 2005-02-14 20:04:29 UTC
Created attachment 44796 [details] [review]
Diff to add Marcus Bains line to calendar (against version 2.0.3)
Comment 2 thouis 2005-02-14 20:08:27 UTC
I've attached my first attempt at a patch.  I wrapped the actual
drawing code with "if (draw_marcus_bains_line)", which I #defined to 1
for now.  I wanted to make it easy to make it a toggleable option.  I
should have wrapped the timeout code in the same way.  The change in
appearance is so minor relative to the value of the line (IMO), that
it probably should just always be on.

Two lines are drawn: a red line in the actual day view main panel, and
a white line in the time panel.  A timeout callback updates them every
minute.  The white line is always there (providing a non-intrusive
clock), the red line on the current day only.  The white line draws
under the time text, the red line over the appointments.

I hope this is suitable for inclusion.
Comment 3 thouis 2005-02-14 22:53:55 UTC
Created attachment 44797 [details] [review]
patch with toggle option for marcus bains line
Comment 4 thouis 2005-02-14 22:59:09 UTC
I just attached a new (superseding) patch against 2.0.3, which
includes code to add a toggle for the Marcus Bains Line in the
settings for the calendar display.  

Two caveats: 

I don't know a lot about Glade programming, so there may be some
problems with translations or something else.

I generated the diff with dpkg-source, and trimmed out some extraneous
stuff caused by difference in built files.  I don't believe I removed
anything I shouldn't have, but it's possible.  I'll verify the patch
by reapplying it to virgin source as soon as I get a chance.
Comment 5 André Klapper 2005-03-03 12:07:47 UTC
please commit patches according to
<http://www.gnome.org/projects/evolution/patch.shtml>, which means 
that you should work on the latest cvs version and add comments to the 
ChangeLog file. if you attach such a patch file to this bug here, 
please add the "patch" keyword. thanks in advance... :-)
Comment 6 Philip Van Hoof 2005-03-04 12:02:52 UTC
Created attachment 44940 [details] [review]
Same patch but now for HEAD
Comment 7 Philip Van Hoof 2005-03-04 12:11:15 UTC
Note: The question whether or not this feature can go into main has
been asked on the evo-hackers mailinglist. 

http://lists.ximian.com/archives/public/evolution-hackers/2005-March/005199.html
Comment 8 JP Rosevear 2005-03-24 21:38:55 UTC
*** bug 273734 has been marked as a duplicate of this bug. ***
Comment 9 thouis 2005-04-28 17:47:13 UTC
Created attachment 45794 [details] [review]
Updated patch for HEAD

I've updated the patch for HEAD based on some of the comments on
evolution-hackers.  I've also sent the patch to evolution-patches.
Comment 10 Rodrigo Moya 2005-05-13 11:09:35 UTC
Patch committed to HEAD.
Comment 11 Rodrigo Moya 2005-05-16 11:48:10 UTC
Patch has been reverted until we get the copyright assignment. Sorry for the
inconvenience
Comment 12 thouis 2005-05-16 13:53:13 UTC
I sent the form in one or two weeks ago.  It should have arrived some time ago.
Comment 13 Rodrigo Moya 2005-05-30 09:15:03 UTC
Re-committed to HEAD!