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 563364 - Show two timezones in the calendar's day view
Show two timezones in the calendar's day view
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Milan Crha
Evolution QA team
: 227902 331375 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-05 18:56 UTC by Milan Crha
Modified: 2009-06-15 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed evo patch (17.47 KB, patch)
2008-12-05 19:12 UTC, Milan Crha
reviewed Details | Review
proposed evo patch ][ (42.38 KB, patch)
2008-12-16 16:10 UTC, Milan Crha
committed Details | Review
screen shot (187.91 KB, image/png)
2008-12-18 11:15 UTC, Milan Crha
  Details

Description Milan Crha 2008-12-05 18:56:04 UTC
I heard Chen talking about such feature, but it seems he's busy with other things now, thus I decided to help him with it a bit. Mayby Suman can review this, it's not so much about calendaring.
Comment 1 Milan Crha 2008-12-05 19:12:53 UTC
Created attachment 124018 [details] [review]
proposed evo patch

for evolution;
Comment 2 Suman Manjunath 2008-12-15 15:18:33 UTC
Patch looks great! Nice work!

The second timezone selector menu could be replicated in Edit -> Preferences -> Calendar and Tasks. It needs to be made more prominent. The way it is right now is probably too obscure for the average user. 

Also, when two timezones are displayed in the view, it'd be nice to have them labeled as such. As we discussed on IRC, maybe the column tool-tip could display the timezone. 

These are the only two comments that I had. Everything else looks great. Feel free to commit this patch right away and implement these ^^ in further commits. 
Comment 3 Milan Crha 2008-12-16 16:10:57 UTC
Created attachment 124808 [details] [review]
proposed evo patch ][

for evolution;

addresses the above things except tooltips. The item is a GnomeCanvasItem, which is not derived from a GtkWidget, thus I cannot use "query-tooltip" there. otherwise it would be easy to implement even tooltips with timezone information.

I also added keys to the scheme, changed their names and used locations instead of timezone ids for storing.
Comment 4 Srinivasa Ragavan 2008-12-18 04:07:04 UTC
Awesome stuff, do you have a screenshot?
Comment 5 Milan Crha 2008-12-18 11:15:51 UTC
Created attachment 124920 [details]
screen shot

not yet :)
Comment 6 Srinivasa Ragavan 2008-12-18 13:36:58 UTC
On first note, I think the time column deserves a heading. Atleast it wasn't very intuitive, in current state. Think, how we can solve this problem.
Comment 7 Milan Crha 2008-12-18 13:49:42 UTC
I agree, but not much space for the location; neither tooltips work easily for GnomeCanvasItem-s. I'm opened for any suggestions ;)
Comment 8 Suman Manjunath 2009-01-10 16:35:08 UTC
Do you really need to expose calendar_config_free_day_second_zones() ? Is it worth an API?? IMO, it'd be better to document calendar_config_get_day_second_zones() returns a newly allocated GSList whose items are newly allocated strings and let the caller handle free'ing it. 
Although, it's okay to use it as a static function within calendar-config.c

Minor nitpick - please don't do: 
#define CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST CALENDAR_CONFIG_DAY_SECOND_ZONE "s"
#define CALENDAR_CONFIG_DAY_SECOND_ZONES_MAX CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST "_max"
Instead: 
#define CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST CALENDAR_CONFIG_PREFIX "/display/day_second_zones"
#define CALENDAR_CONFIG_DAY_SECOND_ZONES_MAX CALENDAR_CONFIG_PREFIX "/display/day_second_zone_max"

Or define another proper prefix if you like :) 

Other than that the patch looks great! 
Comment 9 Milan Crha 2009-01-12 13:05:33 UTC
(In reply to comment #8)
> Do you really need to expose calendar_config_free_day_second_zones() ? Is it
> worth an API?? IMO, it'd be better to document
> calendar_config_get_day_second_zones() returns a newly allocated GSList whose
> items are newly allocated strings and let the caller handle free'ing it. 
> Although, it's okay to use it as a static function within calendar-config.c

I use that function on 3 different places, once in a cal-prefs-dialog, once in e-day-view-time-item, and once a calendar-config. Thus I decided to have an API for that.

> Minor nitpick - please don't do: 
> #define CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST CALENDAR_CONFIG_DAY_SECOND_ZONE
> "s"
> #define CALENDAR_CONFIG_DAY_SECOND_ZONES_MAX
> CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST "_max"
> Instead: 
> #define CALENDAR_CONFIG_DAY_SECOND_ZONES_LIST CALENDAR_CONFIG_PREFIX
> "/display/day_second_zones"
> #define CALENDAR_CONFIG_DAY_SECOND_ZONES_MAX CALENDAR_CONFIG_PREFIX
> "/display/day_second_zone_max"

You do not like compiler features, do you? :) I was just lazy to write 3 almost same rows, this helped me to keep same prefix for same thing without much checking. But I'll change it before committing.
Comment 10 Milan Crha 2009-01-12 14:54:36 UTC
Committed to trunk. Committed revision 37060.

I only changed defines of paths, nothing else.
Commit announced.
Comment 11 André Klapper 2009-03-03 07:56:55 UTC
No, Patch does NOT look right.

Having C two times as mnemonics (for "Se_cond zone" and the "_Close" button) sucks, in fact.
And since when do we use "zone" instead of "time zone"?!
Comment 12 Milan Crha 2009-03-03 09:17:18 UTC
(In reply to comment #11)
> No, Patch does NOT look right.

> Having C two times as mnemonics (for "Se_cond zone" and the "_Close" button)
> sucks, in fact.

Can you reproduce that with other than english locale, say with czech? ;)
Anyway, I overlooked that, I'm sorry.

> And since when do we use "zone" instead of "time zone"?!

Since when it's way too long and would enlarge whole column in some ugly way.

-------

Feel free to reopen, and I will try to not forget during next version development phase.
Comment 13 Milan Crha 2009-06-15 17:16:51 UTC
*** Bug 227902 has been marked as a duplicate of this bug. ***
Comment 14 Milan Crha 2009-06-15 17:22:47 UTC
*** Bug 331375 has been marked as a duplicate of this bug. ***