diff options
author | Ted Gould <ted@canonical.com> | 2009-07-23 16:15:04 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-07-23 16:15:04 -0500 |
commit | 65fe469210b617061b28f2ce83b6fc187a0eb756 (patch) | |
tree | 22160e32846a1ed03391cfa74412e4f62c62f796 /src | |
parent | 04c5db216a561b9232df1e7626a852ff8df9cbf1 (diff) | |
download | ayatana-indicator-session-65fe469210b617061b28f2ce83b6fc187a0eb756.tar.gz ayatana-indicator-session-65fe469210b617061b28f2ce83b6fc187a0eb756.tar.bz2 ayatana-indicator-session-65fe469210b617061b28f2ce83b6fc187a0eb756.zip |
Some comments are always good.
Diffstat (limited to 'src')
-rw-r--r-- | src/session-service.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c index c8b3170..84091c8 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -12,6 +12,10 @@ static DbusmenuMenuitem * root_menuitem = NULL; static GMainLoop * mainloop = NULL; +/* This is the function to show a dialog on actions that + can destroy data. Currently it just calls the GTK version + but it seems that in the future it should figure out + what's going on and something better. */ static void show_dialog (DbusmenuMenuitem * mi, gchar * type) { @@ -32,6 +36,8 @@ show_dialog (DbusmenuMenuitem * mi, gchar * type) return; } +/* This function creates all of the menuitems that the service + provides in the UI. It also connects them to the callbacks. */ static void create_items (DbusmenuMenuitem * root) { DbusmenuMenuitem * mi = NULL; @@ -64,6 +70,8 @@ create_items (DbusmenuMenuitem * root) { return; } +/* Main, is well, main. It brings everything up and throws + us into the mainloop of no return. */ int main (int argc, char ** argv) { |