aboutsummaryrefslogtreecommitdiff
path: root/src/familiar-players-db.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
commit81d9af3fc3f1d3784e623ede592e6d91032353ad (patch)
tree5721aa695a55e8179b75c998cc75089b8d820f6a /src/familiar-players-db.vala
parent98c55dde34ae7ed062ae22712b998ef4787b14ee (diff)
downloadayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.gz
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.bz2
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.zip
moving towards offline application launching
Diffstat (limited to 'src/familiar-players-db.vala')
-rw-r--r--src/familiar-players-db.vala9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/familiar-players-db.vala b/src/familiar-players-db.vala
index 3d7da1f..88bc01f 100644
--- a/src/familiar-players-db.vala
+++ b/src/familiar-players-db.vala
@@ -78,15 +78,12 @@ public class FamiliarPlayersDB : GLib.Object
return false;
}
- private bool load_data_from_key_file()
- {
+ private bool load_data_from_key_file(){
try{
string[] desktops = this.key_file.get_string_list(GROUP_NAME,
KEY_NAME);
-
- int i = 0;
- while (desktops[i] != null) {
- this.players_DB.set(desktops[i], true);
+ foreach(string s in desktops){
+ this.players_DB.set(s, true);
}
return true;
}