aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-11 21:48:54 -0500
committerTed Gould <ted@gould.cx>2010-08-11 21:48:54 -0500
commit0db4eb579e37326484df53ff9dab3a4a6b6a8b40 (patch)
tree053903d560590a170383e0eb9e8681e3e0c44895
parent4398a699958b13e6e5739520eb83f9530dd333f7 (diff)
downloadlibayatana-appindicator-0db4eb579e37326484df53ff9dab3a4a6b6a8b40.tar.gz
libayatana-appindicator-0db4eb579e37326484df53ff9dab3a4a6b6a8b40.tar.bz2
libayatana-appindicator-0db4eb579e37326484df53ff9dab3a4a6b6a8b40.zip
Switching a few status checks to look at the visible state
-rw-r--r--src/application-service-appstore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 5467f31..f5b2db4 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -565,7 +565,7 @@ new_icon_cb (DBusGProxy * proxy, GValue value, GError * error, gpointer userdata
if (app->icon != NULL) g_free(app->icon);
app->icon = g_strdup(newicon);
- if (app->status == APP_INDICATOR_STATUS_ACTIVE) {
+ if (app->visible_state == VISIBLE_STATE_NORMAL) {
gint position = get_position(app);
if (position == -1) return;
@@ -603,7 +603,7 @@ new_aicon_cb (DBusGProxy * proxy, GValue value, GError * error, gpointer userdat
if (app->aicon != NULL) g_free(app->aicon);
app->aicon = g_strdup(newicon);
- if (app->status == APP_INDICATOR_STATUS_ATTENTION) {
+ if (app->visible_state == VISIBLE_STATE_ATTENTION) {
gint position = get_position(app);
if (position == -1) return;
@@ -676,7 +676,7 @@ new_icon_theme_path (DBusGProxy * proxy, const gchar * icon_theme_path, gpointer
if (app->icon_theme_path != NULL) g_free(app->icon_theme_path);
app->icon_theme_path = g_strdup(icon_theme_path);
- if (app->status == APP_INDICATOR_STATUS_ACTIVE) {
+ if (app->visible_state != VISIBLE_STATE_HIDDEN) {
gint position = get_position(app);
if (position == -1) return;