aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-09-07 18:36:02 -0500
committerTed Gould <ted@gould.cx>2010-09-07 18:36:02 -0500
commitd18fdf612dd29c64d43d8f39c9a53d62f562943a (patch)
tree1741c099685c6f7fe3067e311c1fd6ecd89a7d8b /src
parent7b3e58bb6039478f0d937ab375271c724d317b56 (diff)
downloadlibayatana-appindicator-d18fdf612dd29c64d43d8f39c9a53d62f562943a.tar.gz
libayatana-appindicator-d18fdf612dd29c64d43d8f39c9a53d62f562943a.tar.bz2
libayatana-appindicator-d18fdf612dd29c64d43d8f39c9a53d62f562943a.zip
Logging status change
Diffstat (limited to 'src')
-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 d5f9a81..d2200e7 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -72,6 +72,8 @@ typedef enum {
VISIBLE_STATE_SHOWN
} visible_state_t;
+#define STATE2STRING(x) ((x) == VISIBLE_STATE_HIDDEN ? "hidden" : "visible")
+
typedef struct _Approver Approver;
struct _Approver {
DBusGProxy * proxy;
@@ -600,6 +602,8 @@ apply_status (Application * app)
return;
}
+ g_debug("Changing app state '%s' to %s", app->id, STATE2STRING(goal_state));
+
/* This means we're going off line */
if (goal_state == VISIBLE_STATE_HIDDEN) {
gint position = get_position(app);