aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-11 16:27:03 -0500
committerTed Gould <ted@canonical.com>2009-06-11 16:27:03 -0500
commit2cb1046794b8f2ef0a375d1d1061501473d43c73 (patch)
treed37962790ddb66c61725fee4c6a5fbbdc7c1ea9c
parent5ad8f590bc465555aac14f8de3ca17901b8675f3 (diff)
downloadayatana-indicator-session-2cb1046794b8f2ef0a375d1d1061501473d43c73.tar.gz
ayatana-indicator-session-2cb1046794b8f2ef0a375d1d1061501473d43c73.tar.bz2
ayatana-indicator-session-2cb1046794b8f2ef0a375d1d1061501473d43c73.zip
Starting to connect things together. Let's get some Pidgin in there.
-rw-r--r--src/status-provider-pidgin.c6
-rw-r--r--src/status-provider-pidgin.h1
-rw-r--r--src/status-service.c9
3 files changed, 16 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c
index a0a2ba1..ef2bc63 100644
--- a/src/status-provider-pidgin.c
+++ b/src/status-provider-pidgin.c
@@ -65,6 +65,12 @@ status_provider_pidgin_finalize (GObject *object)
return;
}
+StatusProvider *
+status_provider_pidgin_new (void)
+{
+ return STATUS_PROVIDER(g_object_new(STATUS_PROVIDER_PIDGIN_TYPE, NULL));
+}
+
static void
set_status (StatusProvider * sp, StatusProviderStatus status)
{
diff --git a/src/status-provider-pidgin.h b/src/status-provider-pidgin.h
index 5d4459c..85077e8 100644
--- a/src/status-provider-pidgin.h
+++ b/src/status-provider-pidgin.h
@@ -27,6 +27,7 @@ struct _StatusProviderPidgin {
};
GType status_provider_pidgin_get_type (void);
+StatusProvider * status_provider_pidgin_new (void);
G_END_DECLS
diff --git a/src/status-service.c b/src/status-service.c
index e839b16..901f46b 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -10,6 +10,15 @@
#include "dbus-shared-names.h"
#include "status-provider.h"
+#include "status-provider-pidgin.h"
+
+typedef StatusProvider * (*newfunc) (void);
+#define STATUS_PROVIDER_CNT 1
+newfunc status_provider_newfuncs[STATUS_PROVIDER_CNT] = {
+ status_provider_pidgin_new
+};
+
+StatusProvider * status_providers[STATUS_PROVIDER_CNT] = { 0 };
static const gchar * status_strings [STATUS_PROVIDER_STATUS_LAST] = {
/* STATUS_PROVIDER_STATUS_ONLINE, */ N_("Available"),