aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/alarm-notify/alarm-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/alarm-notify/alarm-notify.c')
-rw-r--r--calendar/alarm-notify/alarm-notify.c34
1 files changed, 25 insertions, 9 deletions
diff --git a/calendar/alarm-notify/alarm-notify.c b/calendar/alarm-notify/alarm-notify.c
index eeca88e1b6..2c14196a68 100644
--- a/calendar/alarm-notify/alarm-notify.c
+++ b/calendar/alarm-notify/alarm-notify.c
@@ -153,15 +153,20 @@ alarm_notify_list_changed_cb (ESourceList *source_list,
for (q = sources; q != NULL; q = q->next) {
ESource *source = E_SOURCE (q->data);
gchar *uri;
- const gchar *alarm = e_source_get_property (source, "alarm");
+ const gchar *alarm;
+
+ alarm = e_source_get_property (source, "alarm");
if (alarm && (!g_ascii_strcasecmp (alarm, "false") ||
!g_ascii_strcasecmp (alarm, "never")))
continue;
uri = e_source_get_uri (source);
- if (!g_hash_table_lookup (an->priv->uri_client_hash[source_type], uri) &&
- !g_slist_find_custom (an->priv->offline_sources, uri, find_slist_source_uri_cb)) {
+ if (!g_hash_table_lookup (
+ an->priv->uri_client_hash[source_type], uri) &&
+ !g_slist_find_custom (
+ an->priv->offline_sources, uri,
+ find_slist_source_uri_cb)) {
debug (("Adding Calendar %s", uri));
alarm_notify_add_calendar (an, source_type, source);
}
@@ -209,9 +214,13 @@ alarm_notify_load_calendars (AlarmNotify *an,
for (q = sources; q != NULL; q = q->next) {
ESource *source = E_SOURCE (q->data);
gchar *uri;
- const gchar *alarm = e_source_get_property (source, "alarm");
+ const gchar *alarm;
+
+ alarm = e_source_get_property (source, "alarm");
- if (alarm && (!g_ascii_strcasecmp (alarm, "false") || !g_ascii_strcasecmp (alarm, "never")))
+ if (alarm && (
+ !g_ascii_strcasecmp (alarm, "false") ||
+ !g_ascii_strcasecmp (alarm, "never")))
continue;
uri = e_source_get_uri (source);
@@ -421,8 +430,12 @@ client_opened_cb (GObject *source_object,
if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_REPOSITORY_OFFLINE)) {
if (an->priv->offline_timeout_id)
g_source_remove (an->priv->offline_timeout_id);
- an->priv->offline_sources = g_slist_append (an->priv->offline_sources, g_object_ref (source));
- an->priv->offline_timeout_id = g_timeout_add_seconds (5 * 60, try_open_offline_timeout_cb, an);
+ an->priv->offline_sources = g_slist_append (
+ an->priv->offline_sources,
+ g_object_ref (source));
+ an->priv->offline_timeout_id =
+ g_timeout_add_seconds (
+ 5 * 60, try_open_offline_timeout_cb, an);
}
g_clear_error (&error);
@@ -520,7 +533,9 @@ alarm_notify_add_calendar (AlarmNotify *an,
client_source_type = E_CLIENT_SOURCE_TYPE_LAST;
}
- g_object_set_data (G_OBJECT (source), "source-type", GUINT_TO_POINTER (source_type));
+ g_object_set_data (
+ G_OBJECT (source), "source-type",
+ GUINT_TO_POINTER (source_type));
e_client_utils_open_new (
source, client_source_type, TRUE, NULL,
@@ -551,7 +566,8 @@ alarm_notify_remove_calendar (AlarmNotify *an,
g_hash_table_remove (priv->uri_client_hash[source_type], str_uri);
}
- in_offline = g_slist_find_custom (priv->offline_sources, str_uri, find_slist_source_uri_cb);
+ in_offline = g_slist_find_custom (
+ priv->offline_sources, str_uri, find_slist_source_uri_cb);
if (in_offline) {
ESource *source = in_offline->data;
af31ae8c4e76f5e'>Undeprecate by depending on any version of python 3 rather than deprecatedantoine2014-04-151-3/+0 * - Fix build [1]danilo2014-04-131-1/+2 * Remove expired ports:rene2014-04-136-196/+0 * - Update openmpi from 1.6.5 to 1.8 (new stable version)danilo2014-04-134-3/+4 * - Support stagingdanilo2014-04-131-5/+5 * - Support stagingdanilo2014-04-132-8/+6 * - Support stagingdanilo2014-04-131-26/+16 * Mark broken: Fails to buildantoine2014-04-131-0/+2 * - Update to 2.2.6sunpoet2014-04-132-3/+3 * Stagify, switch to USES=tar:bzip2 and gmake.kwm2014-04-091-8/+3 * Convert from USE_GECKO to USES=geckobapt2014-04-091-12/+7 * Fix build on freebsd 10 and 11 by using gcc but linking to libc++bapt2014-04-085-2/+109 * Support stagebapt2014-04-071-16/+13 * Allow packaging as a userbapt2014-04-071-2/+4 * Allow packaging as userbapt2014-04-071-2/+4 * Support stagebapt2014-04-071-16/+9 * - Update to 2.2.5sunpoet2014-04-062-4/+9 * - Add LICENSEsunpoet2014-04-061-46/+22 * - Simplify Makefilesunpoet2014-04-051-3/+1 * - Take maintainershipsunpoet2014-04-041-1/+1 * science/pyteomics:makc2014-04-032-3/+3 * KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!makc2014-04-034-9/+6 * Upgrading to v. 4.1.thierry2014-04-0112-4822/+4257 * - Support stagingamdmi32014-04-011-2/+1 * science/pyteomics:makc2014-03-312-4/+3 * - Undeprecate by updating MASTER_SITESrene2014-03-315-123/+318 * - Use USES=tar:bzip2sunpoet2014-03-301-2/+1 * - Reroll and update bootstrap Haskell compilers to GHC 7.6.3 on 8.x andpgj2014-03-291-1/+1 * - Change to rubygem dependenciesswills2014-03-292-14/+13 * - USE_BZIP2 -> USES=tar:bzip2amdmi32014-03-281-3/+2 * - Support stagingamdmi32014-03-281-7/+2 * graphics/vips and the rest:makc2014-03-281-3/+3 * science/netcdf3-ftn: Mark unsafe for parallel buildsmarino2014-03-281-0/+2 * - Unbreak Code_Saturne;thierry2014-03-277-51/+58 * - Fix typoacm2014-03-261-1/+1 * - Bump PORTREVISION. Freepascal compiler was updated to 2.6.4acm2014-03-262-0/+2 * This is a Ruby interface to the NetCDF scientific IO library.swills2014-03-265-0/+41 * - Fix buildwen2014-03-261-1/+1 * support LDFLAGS (fixes libghemical)maho2014-03-252-11/+6 * - Fix index after removal of ruby-gnome portsswills2014-03-251-2/+2 * - Use new LIB_DEPENDSswills2014-03-241-2/+2 * - Update 1.6-3tota2014-03-212-4/+3 * - Support stagingehaupt2014-03-201-7/+6 * Deprecate a few old unmaintained portsantoine2014-03-123-0/+6 * - Update to 2.35miwi2014-03-113-11/+18 * Fix compile on 10+kwm2014-03-112-0/+20 * Update the default version of GCC used in the Ports Collection fromgerald2014-03-11