Commit Graph
122 Commits
Author SHA1 Message Date
Erick Perez Castellanos e611f87d6a manager: prevent excessive logging.
Skip "Job failed" warning when the error is caused by ouselves cancelling the
thread.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=749337
2015-10-21 08:49:55 -05:00
Erick Perez Castellanos 5f6bd95750 Fix gcal_manager_is_client_writable() semantics
Fix all the calls to it accordingly.
2015-10-07 08:39:51 -05:00
Georges Basile Stavracas Neto 6080b62368 manager: implement ::move method 2015-07-16 00:22:54 -03:00
Georges Basile Stavracas Neto 10e340c20f manager: initialize value
Avoids calling g_free on uninitialized memory,
which results in a nasty segfault.
2015-07-15 21:18:52 -03:00
Milan Crha 6a39614e38 Bug 751206 - correct trust prompt for collection sources
This enables trust prompts for collection sources. Note the changes from the
above cited bug are needed to have this fully and properly working.

https://bugzilla.gnome.org/show_bug.cgi?id=751206
2015-06-20 23:04:10 -03:00
Milan Crha 3e97490e1d Bug 751211 - crash on ESource::read-only property change notification
Two things changes:
a) the actual crash cause in on_client_readonly_changed(), to test whether
   the 'unit' is valid at all before dereferencing it
b) the callback doesn't seem to be disconnected at all, thus added a disconnect
   of it on the source removal as well

The b) might be enough, but just to be sure I included also a).

https://bugzilla.gnome.org/show_bug.cgi?id=751211
2015-06-20 23:00:40 -03:00
Georges Basile Stavracas Neto b7476cb84c manager: only load calendar sources
Do not blindly load every source loaded by the
ESourceRegistry::source-added, since it may be
a non-calendar source.
2015-05-25 14:05:49 -03:00
Georges Basile Stavracas Neto f63541f475 manager: unred GOA client on finalize 2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto 18f0026eb7 manager: use goa_client for private field
To not confuse it with the many other clients we
already have here
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto cd872d42ed manager: load GOA client at construction time 2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto 27fa9983f4 manager: change ::get_client to ::get_goa_client
This explains better the purpose of the methods, and also
don't collide with the ECalClient prefix we already use.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto 2b4e46a4b6 manager: notify when sources are enabled/disabled
Add the new signal for GcalManager::source-enabled that
notifies connected widgets about the source change. With
that, we can keep checkboxes syncronizes.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto 7942677b8e application: move GoaClient to manager 2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto c48edbd682 manager: implement GcalManager::query_client_data 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto e5a2361274 manager: implemented GcalManager::get_source method 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 18fa205916 manager: initial implementation of GcalManager::save_source method 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto c0c5f102c0 manager: fix return type 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 3070922f5e manager: implement GcalManager::set_default_source method 2015-05-25 12:31:07 -04:00
Erick Pérez Castellanos d49c056d0c manager: squash compilation warning 2015-05-15 23:39:06 -04:00
Erick Pérez Castellanos c7563da2d0 app: handle calendars colours better
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745487
2015-03-06 11:32:32 -05:00
Erick Pérez Castellanos b502ccd363 misc: fix styling 2015-02-16 12:54:41 -05:00
Milan Crha b94a804d3a manager: Enable authentication for eds calendars 2015-02-13 13:02:55 -05:00
Milan Crha 560fddeebe manager: port to latest EDS 2015-02-06 14:09:08 -05:00
Erick Pérez Castellanos b203f4da53 manager: enable/disable shell-search model 2015-02-06 09:21:37 -05:00
Erick Pérez Castellanos f0e35881e7 manager: add ::source_enabled API 2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos 023dbb0632 manager: obtain event data from its uuid
This is only enable on the shell search provider model for now. If it
proves useful we can extend it to some other place
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos 25fd4ab5a9 manager: add shell search provider helpers
Added:
+ :query-completed signal. This would allow to know when the search has
completed and the shell search provider will be able to sort and rank
the results

Added API to:
+ set the query for the shell provider model
+ set the subscription of the view on the shell provider model
+ know when the querying of the views completed on the model and all the
events are available for retrieving
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos 4527ddfa64 manager: added load_completed public API
The idea is to be able to retrieve the status as well listen to the
signal when needed.
2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos 8f7d931340 manager: add :load-completed signal
:load-completed signals the end of the opening of the sources initially
read from ESourceRegistry.
2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos 1dd50951f6 app: add shell provider implementation skeleton 2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos 01f5276764 manager: retrieve events on a range 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 0b2367200b copyright: update year 2015-01-20 13:11:58 -05:00
Georges Basile Stavracas Neto 17e5327cf4 manager: prevent a segfault when opening edit dialog with no sources connected 2015-01-13 17:10:39 -02:00
Erick Pérez Castellanos b27402e870 debug: changed warning statements 2015-01-05 10:33:27 -05:00
Georges Basile Stavracas Neto ecb4cb24d6 manager: fix refreshing condition
GcalManager shouldn't refresh when it's not enabled or when refreshing is not supported, not strictly both of them.
2015-01-03 13:11:00 -02:00
Georges Basile Stavracas Neto 6915522ecc manager: syncronize sources at startup
As proposed by the design team, Calendar should update the sources at startup time.
2015-01-03 13:08:47 -02:00
Erick Pérez Castellanos bc1560c609 manager: cleaner way of returning enabled sources 2014-12-24 15:12:20 -05:00
Erick Pérez Castellanos 8877e89e65 manager: add debug statements 2014-12-24 11:09:46 -05:00
Erick Pérez Castellanos 358b3766a0 manager: don't query disconnected clients 2014-12-24 11:09:46 -05:00
Erick Pérez Castellanos 1de6a8b87a misc: whitespace and code style minor fixes 2014-12-22 21:56:38 -05:00
Erick Pérez Castellanos 748b3f74c0 manager: fix gchar** memory allocation
I had totally forgot you need to end the array with NULL.
2014-12-22 14:36:18 -05:00
Erick Pérez Castellanos c00ae959d1 manager: chains ::constructed up 2014-12-22 13:10:25 -05:00
Erick Pérez Castellanos 073719ef35 manager: get all connected sources
Added ::get_sources_connected API to retrieve a list of every source the
application has connected, no matter whether they are enabled or not.
Use ::get_sources_connected on calendars menu in GcalWindow to enable
disabled sources.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos 6081b9547c manager: emit ::source-activated on enabled sources
The ::source-activated signal has no much sense right now, I'm leaving
it around, for a while, in case some use case pop up. Otherwise in time,
it will go.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos bfeef45983 manager: make ::get_sources retrieve only enabled sources 2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos c4de15eeef window: unmark disabled sources checkbox
Calendars selector menu needs to know which source is enable to properly
mark the checkbox
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos 5a00fddfb3 manager: use "disabled-sources" settings 2014-12-22 08:38:19 -05:00
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