aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-24 21:24:48 -0500
committerTed Gould <ted@gould.cx>2010-03-24 21:24:48 -0500
commit10e6733148b0f561fa0825bc9461d73272a5e6a1 (patch)
treef0d81cea4ce32cab3d89a4395e9b0ea660f75c9c /src
parentaf3e958c5a95d419aacdbf6d332935f02a06c57f (diff)
downloadayatana-indicator-messages-10e6733148b0f561fa0825bc9461d73272a5e6a1.tar.gz
ayatana-indicator-messages-10e6733148b0f561fa0825bc9461d73272a5e6a1.tar.bz2
ayatana-indicator-messages-10e6733148b0f561fa0825bc9461d73272a5e6a1.zip
Some comments
Diffstat (limited to 'src')
-rw-r--r--src/seen-db.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/seen-db.c b/src/seen-db.c
index 6429c13..e09901c 100644
--- a/src/seen-db.c
+++ b/src/seen-db.c
@@ -7,6 +7,8 @@ GHashTable * seendb = NULL;
gchar * filename = NULL;
guint write_process = 0;
+/* Build the hashtable and then see if we have a keyfile that
+ we can get the history of desktop files we've seen. */
void
seen_db_init(void)
{
@@ -58,6 +60,8 @@ seen_db_init(void)
return;
}
+/* A function to write out the seen database after it's been
+ modified for a while. */
static gboolean
write_seen_db (gpointer user_data)
{
@@ -65,6 +69,8 @@ write_seen_db (gpointer user_data)
return FALSE;
}
+/* Add a new desktop file to the seen database. Also sets up a timer
+ to do the write out. */
void
seen_db_add (const gchar * desktop)
{
@@ -84,6 +90,7 @@ seen_db_add (const gchar * desktop)
return;
}
+/* Checks to see if a desktop file has been seen. */
gboolean
seen_db_seen (const gchar * desktop)
{