aboutsummaryrefslogtreecommitdiff
path: root/src/status-provider.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-07-26 23:45:32 -0500
committerTed Gould <ted@canonical.com>2009-07-26 23:45:32 -0500
commit935037f30000d1dfba4fa2917d7fc0b5c03f6fe8 (patch)
treee213c17bb3c0e403f27de7f90c3ca3badecf8314 /src/status-provider.c
parentfe8cb5044f5c599460efb5e221cc4b0e474cad08 (diff)
parent0417e7049a32ceb45e19705992dfccef5d858893 (diff)
downloadayatana-indicator-session-935037f30000d1dfba4fa2917d7fc0b5c03f6fe8.tar.gz
ayatana-indicator-session-935037f30000d1dfba4fa2917d7fc0b5c03f6fe8.tar.bz2
ayatana-indicator-session-935037f30000d1dfba4fa2917d7fc0b5c03f6fe8.zip
* Lock screen works
* Pidgin proxy gets setup and doesn't crash
Diffstat (limited to 'src/status-provider.c')
-rw-r--r--src/status-provider.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/status-provider.c b/src/status-provider.c
index cc9eb32..97f1798 100644
--- a/src/status-provider.c
+++ b/src/status-provider.c
@@ -59,7 +59,8 @@ status_provider_set_status (StatusProvider * sp, StatusProviderStatus status)
{
g_return_if_fail(IS_STATUS_PROVIDER(sp));
- StatusProviderClass * class = STATUS_PROVIDER_CLASS(sp);
+ StatusProviderClass * class = STATUS_PROVIDER_GET_CLASS(sp);
+ g_return_if_fail(class != NULL);
g_return_if_fail(class->set_status != NULL);
return class->set_status(sp, status);
@@ -70,7 +71,7 @@ status_provider_get_status (StatusProvider * sp)
{
g_return_val_if_fail(IS_STATUS_PROVIDER(sp), STATUS_PROVIDER_STATUS_OFFLINE);
- StatusProviderClass * class = STATUS_PROVIDER_CLASS(sp);
+ StatusProviderClass * class = STATUS_PROVIDER_GET_CLASS(sp);
g_return_val_if_fail(class->get_status != NULL, STATUS_PROVIDER_STATUS_OFFLINE);
return class->get_status(sp);