aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-11 20:31:30 -0500
committerTed Gould <ted@gould.cx>2010-08-11 20:31:30 -0500
commita635d68dff58440961c12f1db6f998836b1c556f (patch)
treef5b02d9a1554064b056dd73f1f0dd1746a3fc346
parentfbdf4bfec6dad26c7b3ffdedd9f1616abf20f196 (diff)
downloadayatana-indicator-application-a635d68dff58440961c12f1db6f998836b1c556f.tar.gz
ayatana-indicator-application-a635d68dff58440961c12f1db6f998836b1c556f.tar.bz2
ayatana-indicator-application-a635d68dff58440961c12f1db6f998836b1c556f.zip
Adding a visible state entry to the application structure
-rw-r--r--src/application-service-appstore.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index b2c18d4..c32cd5e 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -62,6 +62,12 @@ struct _ApplicationServiceAppstorePrivate {
AppLruFile * lrufile;
};
+typedef enum {
+ VISIBLE_STATE_HIDDEN,
+ VISIBLE_STATE_NORMAL,
+ VISIBLE_STATE_ATTENTION
+} visible_state_t;
+
typedef struct _Approver Approver;
struct _Approver {
DBusGProxy * proxy;
@@ -86,6 +92,7 @@ struct _Application {
gchar * guide;
gboolean currently_free;
GList * approved_by;
+ visible_state_t visible_state;
};
#define APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(o) \
@@ -736,6 +743,7 @@ application_service_appstore_application_add (ApplicationServiceAppstore * appst
app->guide = NULL;
app->currently_free = FALSE;
app->approved_by = NULL;
+ app->visible_state = VISIBLE_STATE_HIDDEN;
/* Get the DBus proxy for the NotificationItem interface */
GError * error = NULL;