Erick Pérez Castellanos
9af65c8f1f
manager: hold a reference of the application's settings
...
We need to keep on the settings the list of the disabled sources
Moved code from ::init vfunc to ::constructed vfunc in order to wait for
construction properties to be set
2014-12-22 08:38:19 -05:00
Georges Basile Stavracas Neto
cb7d45e184
manager: change signal name to ::'source-activated'
2014-12-16 13:05:11 -02:00
Georges Basile Stavracas Neto
75143200cb
manager: change signal name to ::'source-activated'
2014-12-16 13:01:29 -02:00
Georges Basile Stavracas Neto
0cefc9f5ea
manager: implemented GcalManager::source-added and GcalManager::source-removed signals
2014-12-16 11:12:48 -02:00
Erick Pérez Castellanos
069ea90d57
manager: implement ::enable/disable methods
2014-12-15 13:38:42 -05:00
Erick Pérez Castellanos
9e42922543
manager: Keep references of the clients internally
...
In order to remove clients from the ECalDataModel without destroying we
need to keep a reference to it.
2014-12-15 13:38:37 -05:00
Georges Basile Stavracas Neto
e53e514a7e
manager: stub functions for enabling/disabling sources
2014-12-15 15:34:58 -02:00
Erick Pérez Castellanos
98e4b44a7d
manager: defer adding client to the internal hash
...
Wait until the client is opened and connected to add it to the internal
hash, so GcalManager::get_sources work properly.
2014-12-08 11:21:14 -05:00
Erick Pérez Castellanos
b5ff5437f6
manager: removed unneeded code, and comments
2014-12-05 22:40:15 -05:00
Erick Pérez Castellanos
9188d37e53
manager: removed EVENT_CREATED signal
...
Since we are opening edit-dialog on event creation directly, we don't
need this notification anymore.
2014-12-05 08:17:30 -05:00
Erick Pérez Castellanos
b36a390292
manager: updated GcalManager::create_event
...
Move the API to use ECalComponent instead of uids.
2014-12-04 17:10:56 -05:00
Erick Pérez Castellanos
83eb99efba
manager: update retrieve sources API
...
The move to newer API is to drop GtkListStore dependency on the manager.
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
329118079d
manager: update GcalManager::remove_event API
...
Move GcalManager::remove_event API to new style using ESource and
ECalComponent instead of uuid
Update GcalWindow uses of this API
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
7fa696c137
manager: added ECalDataModel for search alone
2014-12-04 17:10:54 -05:00
Georges Basile Stavracas Neto
2e8b677d6a
app: implemented sync action
...
Useful when the local calendar differs from the remote calendar (i.e. you added an event at Google Calendar).
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
f4eaf2217d
search: added initial search implementation
2014-12-04 17:10:49 -05:00
Georges Basile Stavracas Neto
56e69f7c88
edit-dialog: implements GCAL_RESPONSE_SAVE_EVENT
...
This patch mainly implements GCAL_RESPONSE_SAVE_EVENT. It updates the event correctly, no matter in which source it is.
Signed-off-by: Georges Basile Stavracas Neto <georges.stavracas@gmail.com >
2014-12-04 17:10:49 -05:00
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