diff options
author | Ted Gould <ted@canonical.com> | 2009-08-17 09:05:04 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-17 09:05:04 -0500 |
commit | b107a295f3baacfc3fbd9328cb94f43a0f993c58 (patch) | |
tree | 9ef4f9cf4d83c507fcca6e2f92c8857fbd16a4e5 /src/status-provider-pidgin.c | |
parent | 76e386da015a29e46291fe66848d376e340eed7b (diff) | |
parent | 692f214823437c5ae15bbcd601b98cdae1d1af08 (diff) | |
download | ayatana-indicator-session-b107a295f3baacfc3fbd9328cb94f43a0f993c58.tar.gz ayatana-indicator-session-b107a295f3baacfc3fbd9328cb94f43a0f993c58.tar.bz2 ayatana-indicator-session-b107a295f3baacfc3fbd9328cb94f43a0f993c58.zip |
Merging in the branch getting the status icons working.
Diffstat (limited to 'src/status-provider-pidgin.c')
-rw-r--r-- | src/status-provider-pidgin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c index 6a3f7a5..aaa8732 100644 --- a/src/status-provider-pidgin.c +++ b/src/status-provider-pidgin.c @@ -129,6 +129,12 @@ status_provider_pidgin_init (StatusProviderPidgin *self) static void status_provider_pidgin_dispose (GObject *object) { + StatusProviderPidginPrivate * priv = STATUS_PROVIDER_PIDGIN_GET_PRIVATE(object); + + if (priv->proxy != NULL) { + g_object_unref(priv->proxy); + priv->proxy = NULL; + } G_OBJECT_CLASS (status_provider_pidgin_parent_class)->dispose (object); return; @@ -166,6 +172,7 @@ set_status (StatusProvider * sp, StatusProviderStatus status) StatusProviderPidginPrivate * priv = STATUS_PROVIDER_PIDGIN_GET_PRIVATE(sp); pg_status_t pg_status = sp_to_pg_map[status]; priv->pg_status = pg_status; + g_signal_emit(G_OBJECT(sp), STATUS_PROVIDER_SIGNAL_STATUS_CHANGED_ID, 0, pg_to_sp_map[priv->pg_status], TRUE); return; } |