aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-11 22:26:47 -0500
committerTed Gould <ted@gould.cx>2010-08-11 22:26:47 -0500
commit98252b227acb7d969aed26490dab7cba13298a7c (patch)
tree465d45d7722a4a0b2ed2e557277f0a0685393ded
parentfa45eaa48e679ddf2c264185e624723a7c1c27ac (diff)
downloadlibayatana-appindicator-98252b227acb7d969aed26490dab7cba13298a7c.tar.gz
libayatana-appindicator-98252b227acb7d969aed26490dab7cba13298a7c.tar.bz2
libayatana-appindicator-98252b227acb7d969aed26490dab7cba13298a7c.zip
Making sure to only list the visible applications.
-rw-r--r--src/application-service-appstore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 1b10033..6e666bc 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -914,6 +914,10 @@ _application_service_server_get_applications (ApplicationServiceAppstore * appst
for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) {
Application * app = (Application *)listpntr->data;
+ if (app->visible_state == VISIBLE_STATE_HIDDEN) {
+ continue;
+ }
+
GValueArray * values = g_value_array_new(5);
GValue value = {0};