Commit Graph
1697 Commits
Author SHA1 Message Date
Dušan Kazik 8e35063b7c Updated Slovak translation 2016-02-18 15:30:50 +00:00
Georges Basile Stavracas Neto 9df6a37fd9 edit-dialog: fix more timezone issues 2016-02-18 10:27:53 +01:00
Mario Blättermann 078f39a85e Updated German translation 2016-02-18 09:03:44 +01:00
Georges Basile Stavracas Neto fd6d6e97c9 quick-add-popover: fix event creation again 2016-02-18 04:02:46 -02:00
Georges Basile Stavracas Neto 21aa8ecde4 event-widget: simplify rendering code 2016-02-18 04:02:46 -02:00
Fábio Nogueira 2ed3bf4316 Updated Brazilian Portuguese translation 2016-02-18 05:57:41 +00:00
Georges Basile Stavracas Neto 1a77668b40 style: improve style 2016-02-18 02:11:08 -02:00
Georges Basile Stavracas Neto 83d49be004 style: match single and multi day event themes
We were using different border radius values, and this
commit unifies them.
2016-02-18 02:09:54 -02:00
Georges Basile Stavracas Neto 47bf180809 month-view: fix bottom event overflow calc
We draw a sector of height = bottom_padding * 2 + font_height,
but we calculate it wrongly. Fix that by correctly multiplying
by 2.
2016-02-18 02:08:16 -02:00
Georges Basile Stavracas Neto 6775ffd7b3 edit-dialog: edit datetimes in the system timezone
The dates are adjusted to the system timezone when an
event is set, and we adjust it back to the event's zone
when we save and close the dialog.
2016-02-18 01:28:42 -02:00
Georges Basile Stavracas Neto beac852401 year-view: adjust hours to local timezone
The same principle of month view's overflow popover.
2016-02-18 04:13:34 +01:00
Georges Basile Stavracas Neto 86c6e5da87 quick-add-popover: set local timezone when editing the event
If we add directly from the quick add popover, the event is
all day by default. If we're editing the event, it may or
may not be an all day event. In that case, if the user decides
to give it a time, we want it to be in the local timezone.
2016-02-18 04:03:09 +01:00
Georges Basile Stavracas Neto e5cd5ba7f5 edit-dialog: set UTC timezone when event is all day
This is part of the definition of an all day event.
2016-02-18 04:02:37 +01:00
Georges Basile Stavracas Neto 1af016e2d5 month-view: use adjust hours on popover headers
If an event is from a different timezone, the headers of
the overflown popover should be translated to the current
timezone.

For example, if an event happens at 17h -0300, the translated
hour is 22h +0200. The current code already handles these
differnces, but the listbox row wasn't updated.
2016-02-18 03:42:41 +01:00
Georges Basile Stavracas Neto 2bb5f42b66 edit-dialog: forbid editing times when source is readonly 2016-02-18 03:34:48 +01:00
Georges Basile Stavracas Neto b1184978b1 window: use GDateTimes to pass the range
Another case where we can improve the code by porting
to GLib's api.
2016-02-18 03:31:35 +01:00
Georges Basile Stavracas Neto 5a75abb52e data-model: fix boudaries' checks
The end date is non-incluse, as defined by the iCalendar
protocol.
2016-02-18 03:31:35 +01:00
Balázs Meskó 19a3650d21 Updated Hungarian translation 2016-02-17 23:19:56 +00:00
Piotr Drąg 4e9aadfdd8 Updated Polish translation 2016-02-17 22:22:34 +01:00
Georges Basile Stavracas Neto cc1fd4908c month-view: small style fix 2016-02-17 19:10:23 +01:00
Georges Basile Stavracas Neto d87a6e5bfd month-view: compare to adjusted dates 2016-02-17 19:09:59 +01:00
Georges Basile Stavracas Neto 4c2096ec8a subscriber-view: remove is_child_multicell() vfunc
After we added GcalEvent::is_multiday(), there is no need to
wrap it in a vfunc anymore.

To fix it, simply use is_multiday() function and get rid of the
vfunc.
2016-02-17 19:07:50 +01:00
Georges Basile Stavracas Neto 710ee5fc8f window: fix start & end ranges
When we apply a timezone, the ranges change. Therefore, we
should set the timezone to the date itself and then get the
range.
2016-02-17 19:00:07 +01:00
Georges Basile Stavracas Neto 093e9fa52f event: properly detect the timezone 2016-02-17 18:56:42 +01:00
Georges Basile Stavracas Neto 8b0aa6f499 Bump 3.19.90 release 2016-02-16 20:53:08 -02:00
Georges Basile Stavracas Neto ef0a401ccf build: add help-overlay.ui to EXTRA_DIST 2016-02-16 20:42:39 -02:00
Piotr Drąg de07b938b7 Updated POTFILES.in 2016-02-16 21:51:13 +01:00
Georges Basile Stavracas Neto 4ce918c9aa project: add a shortcuts window
And with this, we finish the last big UI change
that will land for 3.20.
2016-02-16 18:26:02 -02:00
Georges Basile Stavracas Neto 9ff5e05f9c app: automatically load resources from base path
We don't have to load most of the menus we're currently loading
by using the very handy automatic resource loading.

This patch fixup so the app loads resources automagically.
2016-02-16 18:12:18 -02:00
Georges Basile Stavracas Neto bfe18b00df window: fix new event action 2016-02-16 17:53:16 -02:00
Daniel Mustieles 9e5f8438a4 Updated Spanish translation 2016-02-16 18:47:11 +01:00
Georges Basile Stavracas Neto 9ba89e1db6 window: update calendar colors from popover
When we change the calendar color, everything that represents
this calendar must be updated to match the changes. The calendar
popover, however, wasn't aware of these changes and did not match
updates of calendars.

Fix that by destryoing and readding the row for the given calendar
when it changes.

https://bugzilla.gnome.org/show_bug.cgi?id=762069
2016-02-16 15:09:11 -02:00
Georges Basile Stavracas Neto bf95aad2ca event-widget: remove old colors when applying new ones
For the sake of safety and correctness, remove the old color's
CSS before applying the new color's one.
2016-02-16 15:09:11 -02:00
Dušan Kazik 0859b52cb3 Updated Slovak translation 2016-02-16 16:49:31 +00:00
Piotr Drąg 3a3dfc90e7 Updated POTFILES.in 2016-02-16 16:59:56 +01:00
Georges Basile Stavracas Neto 7c0e3776e1 window: use GcalQuickAddPopover internally
Saves a lot of code from the window file, and makes
things better. Yay!
2016-02-16 13:37:54 -02:00
Georges Basile Stavracas Neto 11070f1d17 quick-add-popover: new class to handle new events
Instead of throwing it all for GcalWindow to handle,
add a new class called GcalQuickAddPopover that handles
event creation.

Events are always all day when created from the quick
add popover, unless the user wants to change it and click
'Edit Details' button.

In the future, we'll look forward adding natural language
support, so the user can type the times directly from the
entry (like e.g. "soccer at park from 10am to 11:30am").
2016-02-16 13:32:35 -02:00
Georges Basile Stavracas Neto 3c0c3646f4 utils: use GDateTime to build component
As part of our epic journey to GDateTime, and to
prepare ground for the future work, use GDateTime
as arguments for building the ECalComponent.
2016-02-16 11:54:35 -02:00
Georges Basile Stavracas Neto 6a64384971 year-view: don't allow selection on event list 2016-02-16 03:49:13 +01:00
Georges Basile Stavracas Neto 5d96c11c55 year-view: only apply widget dates to multiday events
Single day events won't ever show slanted edges.
2016-02-16 03:47:31 +01:00
Georges Basile Stavracas Neto 004af2893f month-view: fix date calc on rtl languages 2016-02-16 11:27:21 +09:00
Georges Basile Stavracas Neto 3f4d11f68e event: normalize dates before applying them
I don't know the reasoning behind it, but sometimes
I see dates like March 32 or February 30. Events are
correctly added, so I suspect it's an issue with another
app.

In any case, we should be able to handle weird dates
without crashing, so normalize the dates before using
them.
2016-02-16 10:39:37 +09:00
Georges Basile Stavracas Neto f39991c7c3 month-view: reallocate children when date changes
The subscriber does not add components who are already
added to the view - and doesn't need to do it. To overcome
that fact, we have to reallocate the events even when
nothing was added.

Fix that by setting the GcalSubscriberView->children_changed
to TRUE and queueing an allocation right after the date
changes.

https://bugzilla.gnome.org/show_bug.cgi?id=762066
2016-02-15 21:18:13 -02:00
Georges Basile Stavracas Neto e8647eb829 month-view: use the event's dates instead of widget's ones
Conceptually, we need to compare the event's dates to make
sure we're allocating the widgets correctly, as widget's
dates may not represent the event's ones.
2016-02-15 21:11:17 -02:00
Georges Basile Stavracas Neto 87e36adbb6 month-view: rework allocation code
GcalEventWidget added API to automatically change
the widget rendering according to the initial and
final dates. Month view, however, was still handling
it manually (and wrongly).

Fix that by reworking the allocation code, documenting
it and using the apropriate API from GcalEventWidget.
2016-02-15 20:42:47 -02:00
Georges Basile Stavracas Neto 7a6a13d7e0 event: fix timezone handling
Using libical with libecal means that the dates
are always stored as UTF dates, and we receive the
timezone as the ECalComponentDateTime::tzid value.

This fact was net being considered when adding date
support on GcalEvent, and was causing various issues
when displaying dates.

Fix that by properly handling timezones in GcalEvent.
2016-02-15 20:42:47 -02:00
Georges Basile Stavracas Neto c66a1dbc6b event: fix is_multiday() method
We have to pass the end date first.
2016-02-15 20:42:47 -02:00
Mario Blättermann 270c794f54 Updated German translation 2016-02-15 19:55:32 +01:00
Piotr Drąg a252935fed Updated Polish translation 2016-02-14 18:59:30 +01:00
Georges Basile Stavracas Neto 6283d9d025 application: update event colors when agenda changes
When we change a source (aka agenda) color, we have to
restart Calendar in order to see it in action.

After the work on GcalEvent, events are now able to track
the agenda's color changes, and the event widget updates
itself in response to that.

The last step was simple notifying GcalApplication when an
agenda changes, so it knows when to recreate the color schemes.
2016-02-14 12:51:32 -02:00