diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-16 15:07:09 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-16 15:07:09 +0000 |
commit | 3f7014afbcae2bb141b358ebf0b3cf036b08aa56 (patch) | |
tree | 4eef0601a9c7cb473481d162d8d29aba561ff895 /src/familiar-players-db.vala | |
parent | f800967fcabf6a9d7e6223ff8d6591f042496588 (diff) | |
parent | 4c9ef773092664590d8e6e4fd46d31a35122ab6a (diff) | |
download | ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.tar.gz ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.tar.bz2 ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.zip |
registration process in place
Diffstat (limited to 'src/familiar-players-db.vala')
-rw-r--r-- | src/familiar-players-db.vala | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/familiar-players-db.vala b/src/familiar-players-db.vala index 7012b5a..96d690a 100644 --- a/src/familiar-players-db.vala +++ b/src/familiar-players-db.vala @@ -160,29 +160,5 @@ public class FamiliarPlayersDB : GLib.Object return this.players_DB.keys; } - public static string? fetch_icon_name(string desktop_path) - { - KeyFile desktop_keyfile = new KeyFile (); - try{ - desktop_keyfile.load_from_file (desktop_path, KeyFileFlags.NONE); - } - catch(GLib.FileError error){ - 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); - } - catch(GLib.KeyFileError error){ - warning("Error trying to fetch the icon name from the keyfile"); - return null; - } - } }
\ No newline at end of file |