Commit Graph
46 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 36cd11955f year-view: fix integer rounding issues 2014-12-04 17:10:53 -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
Erick Pérez Castellanos c526329450 misc: code style and comments removed 2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos 251e849548 year-view: launch edit dialog on event activate 2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos 2e82b098b3 build: replace Gtk deprecated calls 2014-12-04 17:10:49 -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 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 c7e27c7ef4 year-view: makes a descendant of GcalSubscriber 2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos c777d4c852 views: use new comparison function 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 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
Erick Pérez Castellanos 48f5b36c29 views: ensure initial/final dates have timezones 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos 50cd68273d year-view: fixed drawing and colors 2014-12-04 17:10:35 -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 8d9e88013e gcal-year-view: refactored draw new-event marks
Make it more readable.
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos 5f0ee1d62f gcal-year-view: addapted to one-click create-event flow 2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos c1d163b24e gcal-year-view: implemented new GcalView API
Added missing methods :mark_current_unit and :clear_marks
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos 1ada96616b build: moved gobject construction to new sugar
Misc formatting fixes
Misc minor refactoring
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 0c03de1631 docs: fixed docs string 2014-12-04 17:10:23 -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 72a4981965 ui: upddated GcalYearView to new UI
Missing: make it compliant with new GcalView API
2014-12-04 17:10:21 -05:00
Erick Pérez Castellanos 01145b8916 Migrated to Gtk+-3.8 2013-05-17 14:41:12 -04:00
Erick Pérez Castellanos 703754e164 Fixed "New Event" click behavior when on year-view. 2012-12-06 11:39:17 -05:00
Erick Pérez Castellanos 5a5d01a4d7 Fixed ordering of dates in New Event Dialog.
When the user selected the months backward the dates on the header
of the "New Event" dialog was wrong. The dialog shown "from October 31 to March 01"
2012-12-05 16:55:31 -05:00
Erick Pérez Castellanos 3e84d62a8c Marked current month in GcalYearView
Added docs about it.
2012-12-01 15:29:04 -05:00
Erick Pérez Castellanos 4ae3f77c0f Added drawings for new_event mark when click "New Event" button. 2012-12-01 15:29:03 -05:00
Erick Pérez Castellanos 85634c79df Added input handling to GcalYearView.
Added drawing primitives from marking the range of dates.
This code is almost the same of the one in GcalMonthView.
2012-12-01 15:29:03 -05:00
Erick Pérez Castellanos 8a5d1ba4fb GcalYearView implementation of GcalView::create_event_on_current_unit.
Added code to connect the event from GcalToolbar in GcalWindow.
2012-12-01 15:29:02 -05:00
Erick Pérez Castellanos 72278de44b Format and documentation changes. 2012-12-01 15:29:02 -05:00
Erick Pérez Castellanos 44ddbdbf88 Added mark of the actual month to GcalYearView. 2012-12-01 15:29:00 -05:00
Erick Pérez Castellanos a3e7f9a360 Implemented GcalView::reposition_child in GcalYearView.
Fixed the same method in GcalMonthView.
2012-12-01 15:28:59 -05:00
Erick Pérez Castellanos f24e1a1dfa Updated docs and fixed formatting issues. 2012-12-01 15:28:58 -05:00
Erick Pérez Castellanos ef08a2a45f Optimized size_allocate method in views.
Removed some debug instructions.
2012-12-01 15:28:58 -05:00
Erick Pérez Castellanos 0a34a40722 Added allocating of children in the GcalYearView.
Reordered months in the grid.
2012-12-01 15:28:57 -05:00
Erick Pérez Castellanos ddae6624a3 Keeping event widget sorted inside views.
Still missing to fix GcalWeekView, but that one needs reworking.
2012-12-01 15:28:56 -05:00
Erick Pérez Castellanos ee66a85e4d Moved GcalViewChild to GcalView.
This struct contains the child data the views needs to know
about it's (event-widget) children.
2012-12-01 15:28:56 -05:00
Erick Pérez Castellanos 1fbcfeb303 Fixed text formatting issues. 2012-12-01 15:28:54 -05:00
Erick Pérez Castellanos bb7e518fa4 Added initial GcalYearView implementation.
First approach to GcalYearView implementation.
The code is missing yet a lot of the others views functionality,
well, almost every view is missing something, but...
2012-12-01 15:28:53 -05:00