aboutsummaryrefslogtreecommitdiff
path: root/src/familiar-players-db.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-24 14:09:49 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-24 14:09:49 +0100
commit98c55dde34ae7ed062ae22712b998ef4787b14ee (patch)
tree30497e8b64d048b9aa392469c176d0428c6b4bd9 /src/familiar-players-db.vala
parenta07a88311d4efbaa8682354c199910a8d96eb0a7 (diff)
downloadayatana-indicator-sound-98c55dde34ae7ed062ae22712b998ef4787b14ee.tar.gz
ayatana-indicator-sound-98c55dde34ae7ed062ae22712b998ef4787b14ee.tar.bz2
ayatana-indicator-sound-98c55dde34ae7ed062ae22712b998ef4787b14ee.zip
record of played application being stored correctly in keyfile
Diffstat (limited to 'src/familiar-players-db.vala')
-rw-r--r--src/familiar-players-db.vala9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/familiar-players-db.vala b/src/familiar-players-db.vala
index 5ed209b..3d7da1f 100644
--- a/src/familiar-players-db.vala
+++ b/src/familiar-players-db.vala
@@ -100,7 +100,6 @@ public class FamiliarPlayersDB : GLib.Object
{
KeyFile keyfile = new KeyFile();
string[] desktops = {};
- //Set<string> keys = this.players_DB.keys;
foreach(string key in this.players_DB.keys){
desktops += key;
}
@@ -133,7 +132,7 @@ public class FamiliarPlayersDB : GLib.Object
return true;
}
- public void db_add(string desktop)
+ public void insert(string desktop)
{
if(already_familiar(desktop) == false){
if(this.write_id != 0){
@@ -149,4 +148,10 @@ public class FamiliarPlayersDB : GLib.Object
{
return this.players_DB.get(desktop);
}
+
+ public Gee.Set<string> records()
+ {
+ return this.players_DB.keys;
+ }
+
} \ No newline at end of file