Re: gnome bug 135093 and backend
[email protected] (Geert Stappers) Thu, 2 Jun 2005 22:11:56 +0200
| Newsgroups | gmane.editors.conglomerate.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 01, 2005 at 05:25:58PM -0400, Thierry Moisan wrote:
> Hi, I know it has been about a month since I wrote anything on this bug
> but I was pretty busy. Here is the code I did so far:
>
> gboolean
> words (CongNodePtr node, gpointer data) {
> int* numb_words = (int*)data;
>
> *numb_words = (*numb_words)+1;
> return FALSE;
> }
>
> static void
> refresh_statistics (CongFilePropertiesDialogDetails *dialog_details,
> CongDocument *doc)
> {
> /*number of words */
> {
> int numb_words=0;
> cong_document_for_each_node (CongDocument *doc,
> CongDocumentRecursionCallback &words, gpointer numb_words);
>
> g_strdup_printf ("%i", *numb_words);
> }
> }
>
> Please correct me if there's anything wrong. I've read part of the C
> tutorial tha Dave Malcom gave me (http://www2.egr.uh.edu/sysdoc/C/Tutorial/)
While waiting for Dave some requests
- please provide a unified diff, so that it be verified by the
non-programmers like me ;-)
- rename the function words in something like CongWordIncrement
> Thierry Moisan
Cheers
Geert Stappers