Commit Graph
58 Commits
Author SHA1 Message Date
Erick Pérez Castellanos dd2a0da883 misc: fix styling issues and gcc warnings
Update code style
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos 68a427528c manager: fix remove source from ECalDataModel
When a source is removed should be removed from the internal
ECalDataModel instance as well
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos 772fa7b586 manager: remove internal date range
This is not needed since the range is kept by ECalDataModel instance
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos 792c6a9cec manager: remove internal query
The internal query is not needed since that's handled now by the
ECalDataModel instance
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos 5f8cadb650 manager: fix clients' hash construction
free_manager_unit should have been removed from clients construction previously
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos 4c0938e5cb manager: free clients' hash-table with g_free
Since ECalDataModel keeps a ref to the connected EClients there's no
need of keeping another and using a custom free function for clients' hash
2014-12-04 17:10:45 -05:00
Georges Basile Stavracas Neto 19d380e80f project: replace GdkColor by GdkRGBA
Fixes bug #738553
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 bc2a348d0b manager: use ECalDataModel to handle events
Initial work. Code is marked all over the place with comments
GcalManager:set_subscriber will set a view and a new range in the
internal ECalDataModel instance.
More cleaning is needed, along the way unneeded methods will be removed
2014-12-04 17:10:41 -05:00
Erick Pérez Castellanos e175ca2f66 manager: overwrite constructed vfunc is not needed
Since GcalManager does not have any properties or use in way GObject's
initialization system there's no need of having initialization code
split between vfunc _init and vfunc _contructed.
2014-12-04 17:10:41 -05:00
Erick Pérez Castellanos 33235fda67 manager: add back dates marking range 2014-12-04 17:10:41 -05:00
Erick Pérez Castellanos 6fa533ba79 manager: improved ESource/EClient connection flow 2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos 6d3e30b160 edit-dialog: added stub code
The code added make the dialog show up. Probably anything else works,
but it's start to keep the project building while GcalManager migration
is finished and new GcalEditDialog is built.
2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos 65653d16b4 manager: remove get_event* methods
Now those values are accesible from inside GcalEventWidget and
GcalEditDialog using its internals copies of ECalComponent of the event
they represent
2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos 4bd4322cf8 manager: enable sources by default 2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos def5345fce manager: update functions docs 2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos ef6d464071 manager: migrate :objects-added signal
GcalManager:objects-added signal pass a list of struct containing
ECalComponents for the event widgets. This ECalComponent instance will
be owned and released by the event widget. Look at: GcalEventWidget::finalize
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos 43eb35fc6e manager: more work into migration
1. Some code style updated
2. Remove unneeded function
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos 9752b719f0 manager: initial work on new design
GcalManager new design includes:
1. remove deprecated methods from eds
2. remove event cache
3. remove the need for keeping date range logic
4. reorder code according to HACKING code style document

This changes will cause some other changes among the application. While
this commit build just fine, work is missing yet. Next I will fix
GcalEventWigdet and the rest of the affected components.
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos 27565d487e time: properly set time and timezone 2014-12-04 17:10:37 -05:00
Erick Pérez Castellanos 1d8cc8a01c manager: use timezone info in time_t conversion 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos a53b3e8225 gcal-manager: add API to get default calendar 2014-12-04 17:10:30 -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 0c03de1631 docs: fixed docs string 2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos ca4dc4f739 gcal-manager: fixed memory leak 2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos 4d31236ea7 Changed event-created signal emission.
GcalManager::event-created signal emission changed.
The new code isn't reentrant so eventually has to be fixed.
2012-12-01 15:29:01 -05:00
Erick Pérez Castellanos 1062d3e435 Debarshi's suggestion about g_clear_object use.
Removed if (pointer != null) condition when using
g_clear_object.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 6ada73c619 Added support for moving events between sources.
Added support in GcalManager for moving events.
The implementation is pretty simplistic. It doesn't handle
any errors, but since I'm lazy I'm planning to let it that
way till the day bugs start appearing.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 9cc6eb8e77 Added method for setting event end-date.
GcalManager::set_event_end_date method added.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 21088e7fb9 Added API to modify some events properties.
New APIS:
    GcalManager::set_event_summary
    GcalManager::set_event_location
    GcalManager::set_event_description
    GcalManager::set_event_start_date

Note: GcalManager::set_event_start_date isn't finished since still
      needs to handle all-day status of the event.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Cosimo Cecchi 3b1c9f04b1 all: don't use custom marshallers
Just use NULL, which gives us the generic GObject marshaller.
2012-09-04 15:43:11 -04:00
Cosimo Cecchi 4448954370 all: fix GCC uninitialized variables warnings 2012-08-24 19:00:55 +02:00
Erick Pérez Castellanos 49afd07fc7 Added GcalManager::event-created signal.
The signal is emitted when an event is created through GcalManager.
2012-08-23 14:58:08 -04:00
Erick Pérez Castellanos 4801dd3513 Added more details to event-details view.
Added start and end date loading.
Added start and end time loading.
Added calendar loading.
2012-08-23 11:26:00 -04:00
Erick Pérez Castellanos bba41ad784 Added read-only query API to GcalManager. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 22163f1d86 Added initial timezone support. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos fc3c165f04 Added has_reminders API to GcalManager. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos a9da2aa552 Made simple-add event work.
Fixed GcalEventOverlay handling of dates.
Added initial code and methods to handle adding events to GcalManager.
Fixed in GcalMonthView handling of dates passed to event-creation.
Fixed gcal-utils sources for gcc warning.
Fixed calling order in GcalWindow.
2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos 4cce38de72 Made this changes too long ago and can't remember what this was about. 2012-08-20 23:43:56 -04:00
Giovanni Campagna 970529cb2f [PATCH] Port to newer EvolutionDataServer
Since 3.5.3, evolution-data-server has changed API regarding
storage and retrieval of sources, introducing the ESourceRegistry
and removing GConf.
Adapt to that.
2012-07-12 10:04:56 -04:00
Erick Pérez Castellanos a4276a1263 Handled sources_model::active changes.
Handled sources_model::active changes by emitting fake ::events-added and
::events-removed signals.
Updated methods hooked to ECalClientView signals to take into account
GcalManagerUnit::enabled field.
2012-07-11 10:50:29 -04:00
Erick Pérez Castellanos ade7c97aed Added method for faking ::events-added signal.
Added a method for sending a fake signal to newly created that don't cause an
update of the timespan covered by the actual query of GcalManager.
Added get_event_all_day method for find out if and event is all-day.
2012-07-11 10:50:29 -04:00
Erick Pérez Castellanos b819b70208 Added method for send ::events-added signal.
Added a hack for send ::events-added signal to newly created views even when the
range of dates covered is not changed.
2012-07-11 10:50:29 -04:00
Erick Pérez Castellanos 07ac070f08 First approach of Event view ended.
For now the view, works only for viewing, and not for editing.
The delete button works, though.
It's needed yet a notification for an event deletion.
2012-07-03 15:20:01 -04:00
Erick Pérez Castellanos e113e60e0f Fixes and enhancements.
Fixed a bunch of warnings.
Added scode for methods in GcalEventView.
Fixed typo in GcalManager
2012-07-03 15:20:00 -04:00
Erick Pérez Castellanos 0709722107 Added reminders widget.
This one implies a lot of assumptions/simplification,
mostly because the API to manage Alarm in e-d-s is huge,
and we want simplicity.
2012-07-03 15:20:00 -04:00
Erick Pérez Castellanos 8e35adf4a0 Added method to get events properties. 2012-07-03 15:20:00 -04:00
Erick Pérez Castellanos 2bda18e55e Removing _gcal prefix to indicate internal functions instead of static modifier. 2012-07-03 15:19:59 -04:00
Erick Pérez Castellanos a5dcdcc924 Started EventView coding. 2012-07-03 15:19:59 -04:00