aboutsummaryrefslogtreecommitdiff
path: root/src/status-provider-pidgin.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-12 12:54:15 -0500
committerTed Gould <ted@canonical.com>2009-06-12 12:54:15 -0500
commit922ee2a93ffaebb430d406d787abeb4687657b73 (patch)
tree6b4dedef6d00cfba9b73937b8a2faa73e0a8791a /src/status-provider-pidgin.c
parentf3f762e1bb3c91ef2226ea82982d24c51ee7a39e (diff)
downloadayatana-indicator-session-922ee2a93ffaebb430d406d787abeb4687657b73.tar.gz
ayatana-indicator-session-922ee2a93ffaebb430d406d787abeb4687657b73.tar.bz2
ayatana-indicator-session-922ee2a93ffaebb430d406d787abeb4687657b73.zip
Some comments describing the intentions of the functions.
Diffstat (limited to 'src/status-provider-pidgin.c')
-rw-r--r--src/status-provider-pidgin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c
index 1f5c5cc..600ee79 100644
--- a/src/status-provider-pidgin.c
+++ b/src/status-provider-pidgin.c
@@ -105,12 +105,22 @@ status_provider_pidgin_finalize (GObject *object)
return;
}
+/**
+ status_provider_pidgin_new:
+
+ Creates a new #StatusProviderPidgin object. No parameters or anything
+ like that. Just a convience function.
+
+ Return value: A new instance of #StatusProviderPidgin
+*/
StatusProvider *
status_provider_pidgin_new (void)
{
return STATUS_PROVIDER(g_object_new(STATUS_PROVIDER_PIDGIN_TYPE, NULL));
}
+/* Takes the status provided generically for Status providers
+ and turns it into a Pidgin status and sends it to Pidgin. */
static void
set_status (StatusProvider * sp, StatusProviderStatus status)
{
@@ -121,6 +131,8 @@ set_status (StatusProvider * sp, StatusProviderStatus status)
return;
}
+/* Takes the cached Pidgin status and makes it into the generic
+ Status provider status */
static StatusProviderStatus
get_status (StatusProvider * sp)
{