diff options
author | Ted Gould <ted@canonical.com> | 2009-06-11 15:54:13 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-06-11 15:54:13 -0500 |
commit | 5ad8f590bc465555aac14f8de3ca17901b8675f3 (patch) | |
tree | afb0f9f00b0708070b556c7e650cd15b0a470d5d /src | |
parent | 963f1418caa6b438d80445b2eb66f5b42e5add06 (diff) | |
download | ayatana-indicator-session-5ad8f590bc465555aac14f8de3ca17901b8675f3.tar.gz ayatana-indicator-session-5ad8f590bc465555aac14f8de3ca17901b8675f3.tar.bz2 ayatana-indicator-session-5ad8f590bc465555aac14f8de3ca17901b8675f3.zip |
Now we're setting the status provider functions of the StatusProvider interface.
Diffstat (limited to 'src')
-rw-r--r-- | src/status-provider-pidgin.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c index 16fbb69..a0a2ba1 100644 --- a/src/status-provider-pidgin.c +++ b/src/status-provider-pidgin.c @@ -12,10 +12,15 @@ struct _StatusProviderPidginPrivate { #define STATUS_PROVIDER_PIDGIN_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), STATUS_PROVIDER_PIDGIN_TYPE, StatusProviderPidginPrivate)) +/* Prototypes */ +/* GObject stuff */ static void status_provider_pidgin_class_init (StatusProviderPidginClass *klass); static void status_provider_pidgin_init (StatusProviderPidgin *self); static void status_provider_pidgin_dispose (GObject *object); static void status_provider_pidgin_finalize (GObject *object); +/* Internal Funcs */ +static void set_status (StatusProvider * sp, StatusProviderStatus status); +static StatusProviderStatus get_status (StatusProvider * sp); G_DEFINE_TYPE (StatusProviderPidgin, status_provider_pidgin, STATUS_PROVIDER_TYPE); @@ -29,6 +34,11 @@ status_provider_pidgin_class_init (StatusProviderPidginClass *klass) object_class->dispose = status_provider_pidgin_dispose; object_class->finalize = status_provider_pidgin_finalize; + StatusProviderClass * spclass = STATUS_PROVIDER_CLASS(klass); + + spclass->set_status = set_status; + spclass->get_status = get_status; + return; } @@ -54,3 +64,17 @@ status_provider_pidgin_finalize (GObject *object) G_OBJECT_CLASS (status_provider_pidgin_parent_class)->finalize (object); return; } + +static void +set_status (StatusProvider * sp, StatusProviderStatus status) +{ + + return; +} + +static StatusProviderStatus +get_status (StatusProvider * sp) +{ + + return STATUS_PROVIDER_STATUS_OFFLINE; +} |