diff options
author | Ted Gould <ted@gould.cx> | 2010-08-16 12:41:02 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-16 12:41:02 -0500 |
commit | 93f92e8e6a6bda708d227f3ebe9c8dae15694b9e (patch) | |
tree | e3a1fc9b1c776a8296d6db3166b92836271a4ae4 /src | |
parent | ba5b85a76a469fb5fa860a723ffd09c939bc7f0e (diff) | |
download | libayatana-appindicator-93f92e8e6a6bda708d227f3ebe9c8dae15694b9e.tar.gz libayatana-appindicator-93f92e8e6a6bda708d227f3ebe9c8dae15694b9e.tar.bz2 libayatana-appindicator-93f92e8e6a6bda708d227f3ebe9c8dae15694b9e.zip |
Making the list so that if there are errors we handle them well.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 73fc5d1..85d72f7 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -578,10 +578,12 @@ apply_status (Application * app) ApplicationServiceAppstore * appstore = app->appstore; ApplicationServiceAppstorePrivate * priv = appstore->priv; + g_debug("Applying status. Status: %d Approved by: %d Approvers: %d Visible: %d", app->status, g_list_length(app->approved_by), g_list_length(priv->approvers), app->visible_state); + visible_state_t goal_state = VISIBLE_STATE_HIDDEN; if (app->status != APP_INDICATOR_STATUS_PASSIVE && - g_list_length(app->approved_by) == g_list_length(priv->approvers)) { + g_list_length(app->approved_by) >= g_list_length(priv->approvers)) { goal_state = VISIBLE_STATE_SHOWN; } |