After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585538 - Add GTK-Doc comments
Add GTK-Doc comments
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: docs
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2009-06-12 09:28 UTC by Thorsten Sick
Modified: 2011-03-09 17:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
seahorse-validity.c documentation (807 bytes, patch)
2009-06-12 09:29 UTC, Thorsten Sick
committed Details | Review
Seahorse-secure-memory.c fully documented (2.82 KB, patch)
2009-06-14 11:17 UTC, Thorsten Sick
committed Details | Review
seahorse-gtkstock.c documented (2.32 KB, patch)
2009-06-15 16:42 UTC, Thorsten Sick
committed Details | Review
seahorse-gconf.c documented (7.01 KB, patch)
2009-06-20 10:32 UTC, Thorsten Sick
committed Details | Review
This is the magic to compile the gtk-doc content (4.88 KB, patch)
2009-07-01 17:07 UTC, Thorsten Sick
none Details | Review
seahorse-util documentation (19.67 KB, patch)
2009-07-27 16:40 UTC, Thorsten Sick
committed Details | Review
seahorse-object.c documentation (16.17 KB, patch)
2009-08-01 18:40 UTC, Thorsten Sick
committed Details | Review
this fixes some gtk-doc compiler warnings (748 bytes, patch)
2009-08-01 18:41 UTC, Thorsten Sick
none Details | Review
maybe this fixes the compilation errors (1.68 KB, patch)
2009-08-01 18:42 UTC, Thorsten Sick
none Details | Review
dbus specific comments (6.34 KB, patch)
2009-08-19 06:35 UTC, Thorsten Sick
committed Details | Review
gpgme data and key operations partially comented (6.28 KB, patch)
2009-08-19 19:20 UTC, Thorsten Sick
committed Details | Review
The patch should be already be in bugzilla. Whitespaces are fixed here. (6.32 KB, patch)
2009-08-22 08:08 UTC, Thorsten Sick
none Details | Review
gkr-keyring creation documented (4.15 KB, patch)
2009-08-24 17:21 UTC, Thorsten Sick
committed Details | Review
seahorse-gpgme-complete documentation (2.55 KB, patch)
2009-09-14 05:36 UTC, Thorsten Sick
committed Details | Review
full documentation for seahore-gpgme-generate.c (4.14 KB, patch)
2009-09-20 14:45 UTC, Thorsten Sick
committed Details | Review
full documentation for seahorse-service (4.85 KB, patch)
2009-10-11 17:07 UTC, Thorsten Sick
committed Details | Review
seahorse-service-crypto.c, full doc. static functions are not gtk-doc-ed (5.38 KB, patch)
2009-10-13 18:40 UTC, Thorsten Sick
committed Details | Review
seahorse-service-keyset full documentation (5.94 KB, patch)
2009-10-16 06:39 UTC, Thorsten Sick
committed Details | Review
seahorse-hkp-server full documentation (6.59 KB, patch)
2009-10-16 06:40 UTC, Thorsten Sick
committed Details | Review
seahorse-sharing documented (3.93 KB, patch)
2009-10-17 10:45 UTC, Thorsten Sick
committed Details | Review
seahorse-daemon.c documentation. (2.36 KB, patch)
2009-10-17 14:31 UTC, Thorsten Sick
committed Details | Review
seahorse-keyserver-search full documentation (6.82 KB, patch)
2009-11-11 06:54 UTC, Thorsten Sick
committed Details | Review
seahorse-widget.c full documentation (7.17 KB, patch)
2009-11-15 20:38 UTC, Thorsten Sick
committed Details | Review
updated the documentation for seahorse-source.h (1.56 KB, patch)
2009-11-21 13:34 UTC, Thorsten Sick
committed Details | Review
full documentation for seahorse-source.c (5.42 KB, patch)
2009-11-21 13:49 UTC, Thorsten Sick
committed Details | Review
Full documentation for seahorse-operation.c (14.65 KB, patch)
2009-11-26 18:23 UTC, Thorsten Sick
committed Details | Review

Description Thorsten Sick 2009-06-12 09:28:16 UTC
Add GTK-Doc comments to the essential source files.
At least libseahorse.
Comment 1 Thorsten Sick 2009-06-12 09:29:55 UTC
Created attachment 136408 [details] [review]
seahorse-validity.c documentation

Complete documentation for
seahorse-validity.c
Comment 2 Thorsten Sick 2009-06-14 11:17:18 UTC
Created attachment 136551 [details] [review]
Seahorse-secure-memory.c fully documented
Comment 3 Thorsten Sick 2009-06-15 16:42:55 UTC
Created attachment 136646 [details] [review]
seahorse-gtkstock.c documented
Comment 4 Shaun McCance 2009-06-16 14:54:22 UTC
Hi Thorsten,

Thanks for the bug report and patches.  I'm reassigning this bug to the Seahorse maintainers, since the user documentation team isn't responsible for this type of work.
Comment 5 Thorsten Sick 2009-06-20 10:32:23 UTC
Created attachment 137058 [details] [review]
seahorse-gconf.c documented
Comment 6 Thorsten Sick 2009-06-20 10:33:23 UTC
Hi Shaun

You are welcome. I will add more patches to the files in libseahorse soon. If anyone has special wishes please tell me.
Comment 7 Adam Schreiber 2009-06-20 12:43:12 UTC
Thorsten, You might want to have a look at the build magic for reference/libcryptui and create reference/libseahorse so that all of your hard work will show up in Devhelp.
Comment 8 Thorsten Sick 2009-07-01 17:07:11 UTC
Created attachment 137701 [details] [review]
This is the magic to compile the gtk-doc content

Here is the magic. More documentation coming soon
Comment 9 Adam Schreiber 2009-07-01 18:19:58 UTC
Those patches all look good.  If you have a git account, feel free to commit them.  If not, let me know and I'll do it.  Thanks for your work.
Comment 10 Thorsten Sick 2009-07-01 21:06:21 UTC
Hi Adam
You are welcome.
I do not have an account yet. Would you please commit my patches ?
Comment 11 Thorsten Sick 2009-07-09 17:00:57 UTC
Adam, you told me on ICQ there is a bug in my Makefile. Can you please describe what's happening ? Or have you been able to fix it already ?
Comment 12 Thorsten Sick 2009-07-27 16:40:26 UTC
Created attachment 139297 [details] [review]
seahorse-util documentation
Comment 13 Adam Schreiber 2009-07-27 16:47:43 UTC
Thorsten, Sorry I haven't been responsive lately.  I'm working on finishing my PhD dissertation and moving.
Comment 14 Thorsten Sick 2009-07-28 05:29:07 UTC
Hello Adam
Thats not a problem. Focus on the important stuff. I will try to reproduce the Makefile error now. If I am not able to do that, I will comment some more code. I think there is enough code for the next 4 months left. :-)
Comment 15 Thorsten Sick 2009-08-01 18:40:56 UTC
Created attachment 139697 [details] [review]
seahorse-object.c documentation
Comment 16 Thorsten Sick 2009-08-01 18:41:28 UTC
Created attachment 139698 [details] [review]
this fixes some gtk-doc compiler warnings
Comment 17 Thorsten Sick 2009-08-01 18:42:33 UTC
Created attachment 139699 [details] [review]
maybe this fixes the compilation errors

Adam, please try this fix and tell me if your errors are still there or fixed. Thanks
Comment 18 Adam Schreiber 2009-08-11 17:26:09 UTC
Thorsten, I've reworked the build files and committed your comment patches.  Thanks for your work and keep it up! :)
Comment 19 Thorsten Sick 2009-08-19 06:35:53 UTC
Created attachment 141135 [details] [review]
dbus specific comments

Thank you Adam
At the moment I try to understand how certain stuff (like dbus) works. The next few comment commits will span several files and will not be complete. I will fill the holes later.
Comment 20 Adam Schreiber 2009-08-19 17:14:04 UTC
Thorsten, I've committed your latest patch.  To help me commit your patches, could you set your email address and check for trailing white space with the settings from http://live.gnome.org/Git/Developers

After setting the colors, trailing white space will show up as red boxes in git diff.

Have a look at what I did to the .h files you've documented already to get rid of some warnings and to the top of libseahorse/seahorse-context.c to increase the doumentation provided.

Cheers.
Comment 21 Thorsten Sick 2009-08-19 19:20:25 UTC
Created attachment 141180 [details] [review]
gpgme data and key operations partially comented

Hi

Sorry. The previous patch was created on my other computer. I forgot the settings there.

This patch shold be a lot better. If still something is missing, please tell me so.
Comment 22 Adam Schreiber 2009-08-19 20:38:02 UTC
Comment on attachment 141180 [details] [review]
gpgme data and key operations partially comented

This patch was better, thanks.  One thing we need to look at is scanning the other directories (pgp, ssh, gkr, etc.) to add their documentation as well.
Comment 23 Thorsten Sick 2009-08-22 08:08:36 UTC
Created attachment 141388 [details] [review]
The patch should be already be in bugzilla. Whitespaces are fixed here.

Adam

Heres a previous patch, with whitespaces fixed. Just in case you want to use this and not the other.

About the created documentation:
I would suggest two "books". One for the internals, one for the api to other applications.

The internals are for seahorse hackers, the external documentation for everyone who is using seahorse in his own projects.

The last one should be simple, straight forward and contain examples if possible.

my 2 cents
Comment 24 Adam Schreiber 2009-08-22 10:46:13 UTC
Comment on attachment 141388 [details] [review]
The patch should be already be in bugzilla. Whitespaces are fixed here.

Thanks Thorsten.  I already fixed the white spaces and committed it.

I'll take a look at scanning the other directories.  The only public API is libcryptui and the DBus calls.
Comment 25 Thorsten Sick 2009-08-24 17:21:08 UTC
Created attachment 141578 [details] [review]
gkr-keyring creation documented
Comment 26 Thorsten Sick 2009-09-14 05:36:01 UTC
Created attachment 143132 [details] [review]
seahorse-gpgme-complete documentation
Comment 27 Thorsten Sick 2009-09-20 14:45:03 UTC
Created attachment 143530 [details] [review]
full documentation for seahore-gpgme-generate.c
Comment 28 Stef Walter 2009-10-10 02:23:38 UTC
Thanks Thorsten. I've committed the remaining three patches. 

I don't want to dampen your enthusiasm, and your work on this is greatly
appreciated ... but I don't think we need to document 'static' functions in
gtk-doc. They're only used with the current module. If necessary we could put a
comment above them describing what they do, but I don't feel this should be
exported to gtk-doc, and thus the comment wouldn't be in gtk-doc style. 

Does that make sense?
Comment 29 Thorsten Sick 2009-10-10 15:08:26 UTC
Thanks for committing.

I do not expect to have all my comments compiled into the documentation. I expect the public interface (libseahorse/dbus) to be documented in devhelp, nothing else.

At the moment I try to fix bugs/implement enhancements. Before doing anything, I read and comment the code that is relevant for this. To know what I am doing.

And I am not sad if many of my comments are only visible in the code and only help seahorse-developers.

I got a macro that creates the gtk-doc comment, it is as simple to create gtk-doc comments as it is to create plain ones.

- Is it ok to continue using gtk-doc style everywhere ? 
- Can you just include some files into the documentation compilation process and skip the others ?
Comment 30 Stef Walter 2009-10-10 19:29:00 UTC
Again, thanks so much for working on the documentation. This is an very valuable contribution to seahorse.

I personally, would prefer it if we don't use the gtk-doc style for static functions. Here are a few reasons:

 * static and non-static functions share the same file. It's hard to make 
   gtk-doc ignore just the static ones, but include the non-static ones 
   in documentation.

 * In my opinion documentation of static functions is less important. These 
   functions change far more often, and are often implementation details 
   that are not key to understanding the entire picture of how something works.
   If a local comment is needed to describe better what a function does, then 
   that's good, but I don't think it needs to be a full gtk-doc doc comment,
   (with each parameter and return value documented).

 * static functions are far more fluid, and change their implementation 
   far more regularly. Updating more formal style gtk-doc documentation for 
   them would become a bit of a chore in these cases.

What's great is that we can build 'internal' documentation via gtk-doc compiling all the gtk-doc style comments. This does not need to show up in devhelp but is for contributors to the project. (Again static functions wouldn't be included in this internal built documentation). 

Though I'm one of the seahorse maintainers, it goes without saying that if you have a good reasons to challenge these opinions, please do so here, and we can work it out.
Comment 31 Thorsten Sick 2009-10-10 19:53:48 UTC
Hi

Is it ok, if I document all functions, but only the non-static ones in gtk-doc style ?

This way gtk-doc will ignore the static functions when compiling the documentation and any programmer will have the benefit of at least basic documentation of what a function is doing.
Comment 32 Thorsten Sick 2009-10-11 17:07:38 UTC
Created attachment 145247 [details] [review]
full documentation for seahorse-service

I hope this makes you happy. Static functions are documented, but not in gtk-doc style
Comment 33 Thorsten Sick 2009-10-13 18:40:05 UTC
Created attachment 145372 [details] [review]
seahorse-service-crypto.c, full doc. static functions are not gtk-doc-ed
Comment 34 Stef Walter 2009-10-16 01:58:55 UTC
(In reply to comment #31)
> Is it ok, if I document all functions, but only the non-static ones in gtk-doc
> style ?
> 
> This way gtk-doc will ignore the static functions when compiling the
> documentation and any programmer will have the benefit of at least basic
> documentation of what a function is doing.

Yes, thats a good plan. Rock on.

I've applied the two latest patches to master.
Comment 35 Thorsten Sick 2009-10-16 06:39:49 UTC
Created attachment 145578 [details] [review]
seahorse-service-keyset full documentation
Comment 36 Thorsten Sick 2009-10-16 06:40:54 UTC
Created attachment 145579 [details] [review]
seahorse-hkp-server full documentation

More rock
Comment 37 Thorsten Sick 2009-10-17 10:45:07 UTC
Created attachment 145655 [details] [review]
seahorse-sharing documented
Comment 38 Thorsten Sick 2009-10-17 14:31:31 UTC
Created attachment 145664 [details] [review]
seahorse-daemon.c documentation.

For the sake of completeness the last documentation for a daemon c file.
Comment 39 Thorsten Sick 2009-11-11 06:54:20 UTC
Created attachment 147448 [details] [review]
seahorse-keyserver-search full documentation
Comment 40 Thorsten Sick 2009-11-15 20:38:47 UTC
Created attachment 147822 [details] [review]
seahorse-widget.c full documentation
Comment 41 Thorsten Sick 2009-11-21 13:34:27 UTC
Created attachment 148223 [details] [review]
updated the documentation for seahorse-source.h
Comment 42 Thorsten Sick 2009-11-21 13:49:29 UTC
Created attachment 148224 [details] [review]
full documentation for seahorse-source.c
Comment 43 Thorsten Sick 2009-11-26 18:23:20 UTC
Created attachment 148546 [details] [review]
Full documentation for seahorse-operation.c
Comment 44 Adam Schreiber 2009-11-26 23:03:02 UTC
I've now committed all of the patches since Stef's last comment.
Comment 45 Adam Schreiber 2009-11-29 23:06:01 UTC
Review of attachment 145247 [details] [review]:

Committed
Comment 46 Adam Schreiber 2009-11-29 23:06:19 UTC
Review of attachment 145372 [details] [review]:

Committed
Comment 47 Adam Schreiber 2009-11-29 23:06:35 UTC
Review of attachment 145578 [details] [review]:

Committed
Comment 48 Adam Schreiber 2009-11-29 23:06:48 UTC
Review of attachment 145579 [details] [review]:

Committed
Comment 49 Adam Schreiber 2009-11-29 23:07:13 UTC
Review of attachment 145655 [details] [review]:

Committed
Comment 50 Adam Schreiber 2009-11-29 23:07:27 UTC
Review of attachment 145664 [details] [review]:

Committed
Comment 51 Adam Schreiber 2009-11-29 23:07:41 UTC
Review of attachment 147448 [details] [review]:

Committed
Comment 52 Adam Schreiber 2009-11-29 23:07:57 UTC
Review of attachment 147822 [details] [review]:

Committed
Comment 53 Adam Schreiber 2009-11-29 23:08:53 UTC
Review of attachment 148546 [details] [review]:

Committed
Comment 54 Adam Schreiber 2009-11-29 23:09:08 UTC
Review of attachment 148224 [details] [review]:

Committed
Comment 55 Adam Schreiber 2009-11-29 23:09:23 UTC
Review of attachment 148223 [details] [review]:

Committed
Comment 56 Thorsten Sick 2009-12-05 09:11:35 UTC
Hello Adam

I think my documentation patches are reliable now -
I will try to use my new GIT account and directly push the next documentation patch. Hope this works.

Any objections ?
Comment 57 Adam Schreiber 2009-12-20 19:37:53 UTC
Thorsten:  I think you can keep pushing your doc patches.  I'd ask for anything involving code you still ask for review first for a while.

Cheers
Comment 58 Thorsten Sick 2009-12-23 16:42:40 UTC
Exactly this is my plan. I still have to learn the Seahorse coding quirks...

But I am confident-I will learn them soon.
Comment 59 Stef Walter 2011-03-09 17:04:58 UTC
Closing this as fixed. Thanks for the doc work Thorsten!