manager: use EDS selectable property to track disabled agendas

This way, we can keep GNOME Calendar and Evolution synchronized.
And we can save some code too.
This commit is contained in:
Georges Basile Stavracas Neto
2017-03-17 21:25:23 -03:00
parent 95e293beed
commit 2544773645
8 changed files with 52 additions and 97 deletions
+12
View File
@@ -924,3 +924,15 @@ should_change_date_for_scroll (gdouble *scroll_value,
return FALSE;
}
gboolean
is_source_enabled (ESource *source)
{
ESourceSelectable *selectable;
g_return_val_if_fail (E_IS_SOURCE (source), FALSE);
selectable = e_source_get_extension (source, E_SOURCE_EXTENSION_CALENDAR);
return e_source_selectable_get_selected (selectable);
}