aboutsummaryrefslogtreecommitdiff
path: root/src/familiar-players-db.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-11-18 11:30:03 +0000
committerConor Curran <conor.curran@canonical.com>2010-11-18 11:30:03 +0000
commit3ea42eb34e8cf787c98bb783d39c6f237381ffe2 (patch)
treecce01484c579ad3dbab314c54b831f3662cdc9dd /src/familiar-players-db.vala
parent0bdad8a144f21ecaceeb1394c2e2a61a994b53c9 (diff)
downloadayatana-indicator-sound-3ea42eb34e8cf787c98bb783d39c6f237381ffe2.tar.gz
ayatana-indicator-sound-3ea42eb34e8cf787c98bb783d39c6f237381ffe2.tar.bz2
ayatana-indicator-sound-3ea42eb34e8cf787c98bb783d39c6f237381ffe2.zip
made the necessary changes to ensure compatibility with valac-0.12, and dealt with a compiler warning
Diffstat (limited to 'src/familiar-players-db.vala')
-rw-r--r--src/familiar-players-db.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/familiar-players-db.vala b/src/familiar-players-db.vala
index af7d07f..47ddc70 100644
--- a/src/familiar-players-db.vala
+++ b/src/familiar-players-db.vala
@@ -167,9 +167,14 @@ public class FamiliarPlayersDB : GLib.Object
desktop_keyfile.load_from_file (desktop_path, KeyFileFlags.NONE);
}
catch(GLib.FileError error){
- warning("Error loading keyfile");
+ warning("Error loading keyfile - FileError");
return null;
}
+ catch(GLib.KeyFileError error){
+ warning("Error loading keyfile - KeyFileError");
+ return null;
+ }
+
try{
return desktop_keyfile.get_string (KeyFileDesktop.GROUP,
KeyFileDesktop.KEY_ICON);