Commit Graph
17 Commits
Author SHA1 Message Date
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 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 0ec0ea8121 event-widget: use GcalEvent internally
This saves a lot of code, and is much saner to maintain.
2016-02-14 12:17:37 -02:00
Erick Pérez Castellanos b502ccd363 misc: fix styling 2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos effce4d127 month-view: avoid sigsegv at hidden event removal
The code was carrying some old behaviour from the days we did not
show hidden events.
2015-01-29 11:22:28 -05:00
Erick Pérez Castellanos 648ae18162 window: use GcalView::get_children_by_uuid 2015-01-20 14:48:46 -05:00
Erick Pérez Castellanos 3ac46c9a3c misc: comments and whitespace fixes 2015-01-20 13:55:49 -05:00
Erick Pérez Castellanos c6b0274c2f subscriber-view: flag children changes 2015-01-08 13:03:34 -05:00
Erick Pérez Castellanos 13a2aad87b month-view: impl ::clear_state vfunc
Implementing GcalSubscrberView::clear_state allow month-view to use
GcalSubscriberView::setup_child when handling overflow widgets
2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos b27402e870 debug: changed warning statements 2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos 37245c6702 subscriber-view: fix :event-activated signal type 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 6989eb36c5 subscriber-view: add ::clear_state to reset widget
GcalSubscriberView::clear_state is implemented by descendants to reset
the state of the drawing
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos a5fe4c5ef0 subscriber-view: use ::setup_child protected func 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos fdf12bc6fd subscriber-view: adopt ::event-activated signal 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 9994377c9f subscriber-view: gained ::get_child_by_uuid vfunc
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 0e5c197c2f subscriber: renamed to GcalSubscriberView
This is more of a semantic change than anything else. GcalSubscriber
will gradually take on GcalView interface and that's why I'm adding the
View suffix.
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 0aba9c55d2 subscriber: files renaming before class renaming 2015-01-05 10:33:25 -05:00