aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-10 16:50:54 -0500
committerTed Gould <ted@gould.cx>2010-08-10 16:50:54 -0500
commitdad491a83573507401805d9782a02dec2bad743a (patch)
treefc1f087e422d8cbb2d1d6c0b5b1be1e1574503c1
parent73fb38c7e5695d4303c58fece8889dc8af0fdfe3 (diff)
downloadayatana-indicator-application-dad491a83573507401805d9782a02dec2bad743a.tar.gz
ayatana-indicator-application-dad491a83573507401805d9782a02dec2bad743a.tar.bz2
ayatana-indicator-application-dad491a83573507401805d9782a02dec2bad743a.zip
Adding an override hash table
-rw-r--r--src/application-service-appstore.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 5fc4f9b..47396bb 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -56,11 +56,14 @@ static gboolean _application_service_server_get_applications (ApplicationService
#define NOTIFICATION_ITEM_SIG_NEW_LABEL "NewLabel"
#define NOTIFICATION_ITEM_SIG_NEW_ICON_THEME_PATH "NewIconThemePath"
+#define OVERRIDE_GROUP_NAME "Ordering Index Overrides"
+
/* Private Stuff */
struct _ApplicationServiceAppstorePrivate {
DBusGConnection * bus;
GList * applications;
GList * approvers;
+ GHashTable * ordering_overrides;
};
typedef struct _Approver Approver;
@@ -183,6 +186,8 @@ application_service_appstore_init (ApplicationServiceAppstore *self)
priv->applications = NULL;
priv->approvers = NULL;
+
+ priv->ordering_overrides = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
GError * error = NULL;
priv->bus = dbus_g_bus_get(DBUS_BUS_STARTER, &error);
@@ -225,6 +230,12 @@ application_service_appstore_dispose (GObject *object)
static void
application_service_appstore_finalize (GObject *object)
{
+ ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE(object)->priv;
+
+ if (priv->ordering_overrides != NULL) {
+ g_hash_table_destroy(priv->ordering_overrides);
+ priv->ordering_overrides = NULL;
+ }
G_OBJECT_CLASS (application_service_appstore_parent_class)->finalize (object);
return;