gnome-calendar:wip/gbsneto/quick-add-popover

Last commit made on 2016-02-16
Get this branch:
git clone -b wip/gbsneto/quick-add-popover https://git.launchpad.net/gnome-calendar

Branch merges

Branch information

Name:
wip/gbsneto/quick-add-popover
Repository:
lp:gnome-calendar

Recent commits

7c0e377... by Georges Basile Stavracas Neto on 2016-02-16

window: use GcalQuickAddPopover internally

Saves a lot of code from the window file, and makes
things better. Yay!

11070f1... by Georges Basile Stavracas Neto on 2016-02-16

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").

3c0c364... by Georges Basile Stavracas Neto on 2016-02-16

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.

6a64384... by Georges Basile Stavracas Neto on 2016-02-16

year-view: don't allow selection on event list

5d96c11... by Georges Basile Stavracas Neto on 2016-02-16

year-view: only apply widget dates to multiday events

Single day events won't ever show slanted edges.

004af28... by Georges Basile Stavracas Neto on 2016-02-16

month-view: fix date calc on rtl languages

3f4d11f... by Georges Basile Stavracas Neto on 2016-02-16

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.

f39991c... by Georges Basile Stavracas Neto on 2016-02-15

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

e8647eb... by Georges Basile Stavracas Neto on 2016-02-15

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.

87e36ad... by Georges Basile Stavracas Neto on 2016-02-15

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.