manager: added load_completed public API
The idea is to be able to retrieve the status as well listen to the signal when needed.
This commit is contained in:
@@ -1118,3 +1118,9 @@ gcal_manager_get_events (GcalManager *manager,
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
gcal_manager_load_completed (GcalManager *manager)
|
||||||
|
{
|
||||||
|
GcalManagerPrivate *priv = gcal_manager_get_instance_private (manager);
|
||||||
|
return priv->sources_at_launch == 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -129,6 +129,8 @@ GList* gcal_manager_get_events (GcalManager *manager
|
|||||||
icaltimetype *range_start,
|
icaltimetype *range_start,
|
||||||
icaltimetype *range_end);
|
icaltimetype *range_end);
|
||||||
|
|
||||||
|
gboolean gcal_manager_load_completed (GcalManager *manager);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GCAL_MANAGER_H__ */
|
#endif /* __GCAL_MANAGER_H__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user