aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-07 14:18:31 -0600
committerTed Gould <ted@gould.cx>2010-01-07 14:18:31 -0600
commit16fb78b663704da483de14c54fbcc4088a754c0e (patch)
treedcb781b595044b0455457305dcb3cdca9bdfce5f /src
parent655f6d113305163d87643f9282f09b96fe5ccbe5 (diff)
downloadlibayatana-appindicator-16fb78b663704da483de14c54fbcc4088a754c0e.tar.gz
libayatana-appindicator-16fb78b663704da483de14c54fbcc4088a754c0e.tar.bz2
libayatana-appindicator-16fb78b663704da483de14c54fbcc4088a754c0e.zip
Adding in a status variable
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index f24b36f..128139b 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -53,6 +53,13 @@ struct _ApplicationServiceAppstorePrivate {
GList * applications;
};
+typedef enum _ApplicationStatus ApplicationStatus;
+enum _ApplicationStatus {
+ APP_STATUS_PASSIVE,
+ APP_STATUS_ACTIVE,
+ APP_STATUS_ATTENTION
+};
+
typedef struct _Application Application;
struct _Application {
gchar * dbus_name;
@@ -61,6 +68,7 @@ struct _Application {
DBusGProxy * dbus_proxy;
DBusGProxy * prop_proxy;
gboolean validated; /* Whether we've gotten all the parameters and they look good. */
+ ApplicationStatus status;
};
#define APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(o) \
@@ -308,6 +316,7 @@ application_service_appstore_application_add (ApplicationServiceAppstore * appst
app->dbus_name = g_strdup(dbus_name);
app->dbus_object = g_strdup(dbus_object);
app->appstore = appstore;
+ app->status = APP_STATUS_PASSIVE;
/* Get the DBus proxy for the NotificationItem interface */
GError * error = NULL;