aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/ordering-override.keyfile2
-rw-r--r--debian/changelog9
-rw-r--r--src/application-service-appstore.c9
3 files changed, 18 insertions, 2 deletions
diff --git a/data/ordering-override.keyfile b/data/ordering-override.keyfile
index 6665b7a..dcfb75b 100644
--- a/data/ordering-override.keyfile
+++ b/data/ordering-override.keyfile
@@ -1,2 +1,2 @@
-[Ordering Index Overides]
+[Ordering Index Overrides]
gnome-power-manager=1
diff --git a/debian/changelog b/debian/changelog
index 4534043..9a47422 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+indicator-application (0.2.3-0ubuntu2~ppa5~order3) UNRELEASED; urgency=low
+
+ * Upstream Merge
+ * Checking to make sure we get a list of keys before using
+ them.
+ * Fixing typo for group name in overrides file.
+
+ -- Ted Gould <ted@ubuntu.com> Wed, 11 Aug 2010 09:06:58 -0500
+
indicator-application (0.2.3-0ubuntu2~ppa5~order2) maverick; urgency=low
* Upstream Merge
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index d632456..2306230 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -273,7 +273,14 @@ load_override_file (GHashTable * hash, const gchar * filename)
return;
}
- gchar ** keys = g_key_file_get_keys(keyfile, OVERRIDE_GROUP_NAME, NULL, NULL);
+ gchar ** keys = g_key_file_get_keys(keyfile, OVERRIDE_GROUP_NAME, NULL, &error);
+ if (error != NULL) {
+ g_warning("Unable to get keys from keyfile '%s' because: %s", filename, error->message);
+ g_error_free(error);
+ g_key_file_free(keyfile);
+ return;
+ }
+
gchar * key = keys[0];
gint i;