[gnome-calendar] application: add method to retrieve the GoaClient
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] application: add method to retrieve the GoaClient
- Date: Mon, 25 May 2015 16:59:58 +0000 (UTC)
commit 0aad536ca17d31a2e7b891df46741ab28bc16653
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Apr 30 16:55:06 2015 -0300
application: add method to retrieve the GoaClient
src/gcal-application.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 01e066b..f2c6f59 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -610,3 +610,20 @@ gcal_application_set_initial_date (GcalApplication *application,
g_free (priv->initial_date);
priv->initial_date = gcal_dup_icaltime (date);
}
+
+/**
+ * gcal_application_get_client:
+ * @application: a #GcalApplication
+ *
+ * Retrieves the internal #GoaClient from @application. It
+ * should not be unreferenced after usage.
+ *
+ * Returns: (transfer none): the #GoaClient of @application
+ */
+GoaClient*
+gcal_application_get_client (GcalApplication *application)
+{
+ g_return_val_if_fail (GCAL_IS_APPLICATION (application), NULL);
+
+ return application->priv->client;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]