aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-13 08:33:04 -0600
committerTed Gould <ted@gould.cx>2010-01-13 08:33:04 -0600
commit5739297b7d0a67be588044a4be2163fb5cafbb78 (patch)
tree542fad7745d08afd000a76e1743a4eb61f97eb1b
parent3ac18fb423b9894b85d06acd841ce6d3f5a41132 (diff)
downloadlibayatana-appindicator-5739297b7d0a67be588044a4be2163fb5cafbb78.tar.gz
libayatana-appindicator-5739297b7d0a67be588044a4be2163fb5cafbb78.tar.bz2
libayatana-appindicator-5739297b7d0a67be588044a4be2163fb5cafbb78.zip
Calling the unfallback function if we're doing this for the second time.
-rw-r--r--src/libappindicator/app-indicator.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 4018083..7ade413 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -603,7 +603,13 @@ register_service_cb (DBusGProxy * proxy, GError * error, gpointer data)
start_fallback_timer(APP_INDICATOR(data), TRUE);
}
- /* TODO: Unfallback here */
+ if (priv->status_icon) {
+ AppIndicatorClass * class = APP_INDICATOR_GET_CLASS(data);
+ if (class->unfallback != NULL) {
+ class->unfallback(APP_INDICATOR(data), priv->status_icon);
+ priv->status_icon = NULL;
+ }
+ }
return;
}