Georges Basile Stavracas Neto
23a7cda500
month-view: fixed small position calc issue
...
When using double for *part* of the calculation of Y position, the result is completely wrong.
This commit fixes it.
2014-12-05 00:04:42 -02:00
Erick Pérez Castellanos
947e23758c
misc: whitespace, comments and strings fixed
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
3887951323
month-view: more double to int rounding issues
...
Style fixes
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
260237bc85
month-view: style cleaning
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
5cbdf28387
month-view: added current day highlight
...
Improved ::draw vfunc code. Use .current class to handle active day styling
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
d25a6e4cbf
views: queue a redraw when the current date changes
...
This partially fixes bug #739550 . The warning message is still being emmited.
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
3e0fa5763c
month-view: fix rendering issues, smooth resizing
...
All about integer rounding.
Fixes bug #739294 .
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
298a0e56c2
Revert: month-view: fix cell rendering glitch
...
This was not the proper fix.
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
4425149647
month-view: optimized, organized ::draw vfunc code
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
8c5eaa66c8
views: fixed docs style
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
c526329450
misc: code style and comments removed
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
a67635bb05
month-view: add first_weekday settings to view
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
8531fedde9
month-view: optimize set :date property
...
There's no need to calculate first day of month date twice.
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
c9d347cceb
misc: updates to code style and docs
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
2e82b098b3
build: replace Gtk deprecated calls
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
de90213fd7
month-view: fix cell rendering glitch
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739294
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
f988eac12f
view iface: remove more unused methods
...
GcalView::draw_event overlapped a bit with GcalView::will_add_event, so
the same reasons for removing one stand for the other.
GcalView::clear was a hack for the composited GcalDayView which has
gone, and was a bad experiment.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
18b4ef8186
month-view: remove FIXME
...
Subscription is already being made. Remove reminder.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos
6f2b01018f
view iface: remove unused will_add_event
...
ECalDataModelSubscriber interface notify each view only about the events
beloging to the subscribed range so there's no need of checking if the
event widget will be added.
The safety check of not adding the same widget twice its stil being made
on each GtkContainer::add implementation.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos
aca1b66743
month-view: makes a descendant of GcalSubscriber
...
By making GcalMonthView a descendat of GcalSubscriber it gets
implementation for each of the methods on ECalDataModel subscriber and
utomatically gains the functionality of adding and removing events widgets
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos
9b281eff69
month-view: implement ECalDataModel::components_modified vfunc
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos
cf96da6308
memory: fix memory leaks scattered around
2014-12-04 17:10:44 -05:00
Erick Pérez Castellanos
d37347418b
month-view: implement ECalDataModel::components_removed vfunc
...
Previous fixes on GcalEventWidget allow to use the recurid in order to
differentiate instances of the same event.
2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos
a9b302b205
month-view: fix double free of the passed component
2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos
ab2050b695
month-view: change widget comparison for inclusion
...
Using new function ensure checking recurid besides everything else
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
2bb8b6f4c4
month-view: add ECalDataModelSubscriber iface impl
...
Initial work implementing ECalDataModelSubscriber interface. As
explained before, on each set of GcalView:active-date property the range
the view its subscribing gets updated. Allowing this to obtain
notification through ECalDataModelSubscriber::components_added and
ECalDataModelSubscriber::components_removed vfuncs.
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
3a151894be
views: implemented :manager property
...
As explained before, this is only intended to keep a reference to the
GcalManager instance of the application.
Misc: fixed some documentation and whitespace issues
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
d8cc980a1d
month-view: implement GcalView::wil_add_event vfunc
2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos
76582329ef
view: add :will_add_event vfunc and stub methods
...
Note: this commit probably won't build, but this is the right order of
keeping history.
2014-12-04 17:10:38 -05:00
Georges Basile Stavracas Neto
4287cc72ef
month-view: fixed wrong day selection
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos
48f5b36c29
views: ensure initial/final dates have timezones
2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos
ff11049f30
build: remove calls to deprecated methods
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos
1ad998b54b
month-view: fixed drawing of the grid
...
Updated colors and line widths
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos
0527350db7
gcal-month-view: added security check
...
Prevented button release handling when not needed
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos
65bc0d1269
gcal-month-view: fixed days number drawing
...
Updated GcalMonthViewPrivate:days_delay on every day update
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos
41f490aa8d
gcal-month-view: fixed drawing issue
...
Fixed drawing issue with :mark_current_unit method
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos
a24eca0386
gcal-view: modified mark_current_unit API
...
Added x,y return values, positions of the current unit
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos
8cbac83723
gcal-month-view: migrated to new GcalView API
...
Migrated to new event creation flow, compliant with one click create event.
Moved to new private instance data API.
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos
f3df3e784d
misc: cleaning unused code.
2014-12-04 17:10:28 -05:00
Erick Pérez Castellanos
37dc43c518
gcal-view: implementing GcalView:clear vfunc
2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos
c365e9124a
gcal-view: cleaned API
...
Removed unneeded GcalView:reposition_child method.
Reworked gcal_window_events_modified to use GcalView:get_by_uuid
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos
9f530a5b8a
gcal-view: modified API
...
Implemented in views.
Reworked GcalDayView implementation to allow bigger
than days events.
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos
4330859ae0
gcal-view: removed unused methods
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
a5157748bc
gcal-view: cleaned GcalView API
...
Removed GcalView:remove_by_uuid method.
Reordered gcal-view header file.
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
1c27bb35ff
gcal-month-view: added #GcalView implementations
...
Added #GcalView:get_left_header and #GcalView:get_right_header
Reorded #GcalView vfuncs implementatiob in the source file
2014-12-04 17:10:24 -05:00
Erick Pérez Castellanos
800ecf938c
gcal-view: add some API implementation
...
Added GcalView:get_left_header and GcalView:get_right_header
implementations to GcalMonthView and GcalYearView
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos
c22792e65e
gcal-view: reworked a little more the API
...
Added API to get the headers for update GcalNavBar
Updated GcalMonthView, GcalWeekView and GcalYearView implementations
Updated calls in GcalWindow
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos
03af4df286
gcal-view: GcalViewChild struct field renamed
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos
3c1a1b89c1
gcal-month-view: removed unnecessary function split
...
Reordered some functions.
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos
b9d111fd42
ui: updated GcalMonthView to new UI
...
Missing make it compliant with the new GcalView API
2014-12-04 17:10:21 -05:00