aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-05-19 12:42:48 -0500
committerTed Gould <ted@gould.cx>2010-05-19 12:42:48 -0500
commit33799d8b1d8417218688a7d2599c24bc14e04e4c (patch)
treeb88377cadc0096d7a7ca71c2145f4210aa045ad7
parente66edab185ed5f916dc15628956d89f87ab10b44 (diff)
downloadayatana-indicator-datetime-33799d8b1d8417218688a7d2599c24bc14e04e4c.tar.gz
ayatana-indicator-datetime-33799d8b1d8417218688a7d2599c24bc14e04e4c.tar.bz2
ayatana-indicator-datetime-33799d8b1d8417218688a7d2599c24bc14e04e4c.zip
Comments
-rw-r--r--src/datetime-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index d2e2b3e..ee29a7a 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -14,6 +14,9 @@ static GMainLoop * mainloop = NULL;
static DbusmenuServer * server = NULL;
static DbusmenuMenuitem * root = NULL;
+/* Does the work to build the default menu, really calls out
+ to other functions but this is the core to clean up the
+ main function. */
static void
build_menus (DbusmenuMenuitem * root)
{
@@ -21,6 +24,8 @@ build_menus (DbusmenuMenuitem * root)
return;
}
+/* Repsonds to the service object saying it's time to shutdown.
+ It stops the mainloop. */
static void
service_shutdown (IndicatorService * service, gpointer user_data)
{
@@ -29,6 +34,7 @@ service_shutdown (IndicatorService * service, gpointer user_data)
return;
}
+/* Function to build everything up. Entry point from asm. */
int
main (int argc, char ** argv)
{