Georges Basile Stavracas Neto
f1069c96d6
event: implement GInitable
...
Since the event creation can fail, lets make it a GInitable
so that we can fail during initialization.
https://bugzilla.gnome.org/show_bug.cgi?id=763166
2016-09-28 00:07:28 -03:00
Georges Basile Stavracas Neto
cd50bec506
project: fix build warnings
...
https://bugzilla.gnome.org/show_bug.cgi?id=770466
2016-08-29 23:08:39 -03:00
Georges Basile Stavracas Neto
f3da1b2cec
subscriber-view: iter the single day table
...
When we modify an event, the start date may change
and there is no way to retrieve it back. Since we're
relying on the start date to get the cell number and,
remove the widget, it leads to a crash because the
widget is not removed.
Fix that by brute-forcely search the widget in the
correct table.
2016-05-21 18:53:37 -03: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
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