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 103688 - Updated timeout/io/idle chapter
Updated timeout/io/idle chapter
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: reference documentation
2.4
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-01-16 17:59 UTC by Richard Reich
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Updated ch17.html file (page 1) - describing Timeouts. (9.57 KB, text/html)
2003-03-13 18:43 UTC, gene
  Details
Timeout Examples - updated for Gtkmm2/2.2 (1.96 KB, application/octet-stream)
2003-03-13 18:45 UTC, gene
  Details
patch file for updated docs/examples described above (20.02 KB, patch)
2003-03-16 09:15 UTC, gene
none Details | Review
new timeout.cc example (patch above did not include this) (4.71 KB, text/plain)
2003-03-16 09:19 UTC, gene
  Details
Final (hopefully) patch that incorporates all the above suggestions/fixes. - Updates Idle/Timeout chapters to Gtkmm2 (21.89 KB, patch)
2003-03-30 21:51 UTC, gene
none Details | Review
timeout_files.tar.gz - added files for the above patch. (3.47 KB, application/octet-stream)
2003-03-30 21:52 UTC, gene
  Details
latest patch to update documentation for timer & idle functions (21.77 KB, patch)
2003-04-06 17:18 UTC, gene
none Details | Review
files.tar.gz - additional files for the above patch (3.46 KB, application/octet-stream)
2003-04-06 17:19 UTC, gene
  Details

Description Richard Reich 2003-01-16 18:09:19 UTC
http://gtkmm.org/gtkmm2/docs/tutorial/html/ch17s02.html describs gtkmm 1.2
Comment 1 gene 2003-03-13 18:42:18 UTC
http://gtkmm.org/gtkmm2/docs/tutorial/html/ch17.html
http://gtkmm.org/gtkmm2/docs/tutorial/html/ch17s02.html
http://gtkmm.org/gtkmm2/docs/tutorial/html/ch17s03.html

All do not work on Gtkmm2.  They seem to be describing Gtkmm1.2.  The 
examples do not compile in Gtkmm2, and some of them seem to be 
missing from the /examples directory.
Comment 2 gene 2003-03-13 18:43:57 UTC
Created attachment 15001 [details]
Updated ch17.html file (page 1) - describing Timeouts.
Comment 3 gene 2003-03-13 18:45:41 UTC
Created attachment 15002 [details]
Timeout Examples - updated for Gtkmm2/2.2
Comment 4 gene 2003-03-13 18:46:52 UTC
I'll try and get the rest of this updated by this weekend.  It's very 
important to have good documentation, especially for the new users.
Comment 5 Murray Cumming 2003-03-14 07:14:28 UTC
So should I apply what we have so far, or wait?
Comment 6 gene 2003-03-14 16:31:13 UTC
Why don't you wait till this weekend.  I was at work, and I couldn't 
create proper patches.  I'll have everything updated by the end of 
this weekend.
Comment 7 Murray Cumming 2003-03-15 08:06:24 UTC
re. the html: You do know that the .html is generated, right? You
would need to patch the .xml. It's much easier for me to review a
patch than the whole end result..

Please do mention the patch filenames when uploading, so I know what
format they are.
Comment 8 gene 2003-03-16 09:15:09 UTC
Okay, sorry about the confusion earlier.  This is the first time I've
used bugzilla and done any sort of patching.  Anyhow, below is the
patch for the updated documentation.  Specifically, I've updated the
documentation for the timeout and the idle functions. The monitoring
I/O chapter still needs to be updated. 

The patch also includes new examples for the two updated chapters.
Comment 9 gene 2003-03-16 09:15:58 UTC
Created attachment 15055 [details] [review]
patch file for updated docs/examples described above
Comment 10 gene 2003-03-16 09:19:35 UTC
Created attachment 15056 [details]
new timeout.cc example (patch above did not include this)
Comment 11 Murray Cumming 2003-03-18 12:39:00 UTC
It looks good. I will make the following changes when I apply it:

- I will put the examples in examples/book/
- I will remove the text
"+//Its more memory efficient to only include the header files that 
your
+// application will need rather than including <gtkmm.h>"
because that's more a question of compile-time and I'd prefer our 
examples to use <glibmm.h> or <gtkmm.h> anyway.
- I will use on_something() instead of something_callback().
- I will make some methods protected, because they don't need to be 
public.
- I will avoid the use of CAPITALS for member variable. even if they 
are const they are not really constants.
- I will use 2-space indentation, like the other book examples.
- I might use stock IDs instead of hard-coded button names 
like "Quit" - I'm not sure how consistent we are about this.

I won't have a chance to apply this before the weekend so feel free 
to revise the patch yourself in the meantime if you want to help me a 
little. Thanks a lot for this work - lots of people will appreciate 
it.


Comment 12 Murray Cumming 2003-03-19 15:46:01 UTC
Actually, I might not have a chance to do this before the weekend 
either. If you revise the patch then I can get someone else to apply 
it sooner. Thanks.
Comment 13 Murray Cumming 2003-03-25 14:21:44 UTC
Added PATCH keyword so this isn't forgotten about.
Comment 14 Murray Cumming 2003-03-29 12:17:07 UTC
Also, there should be no source code directly in the XML files. It
should be in examples/book/ and it should look like existing examples.
Please update your patch, providing any extra directories/files if
necessary.
Comment 15 gene 2003-03-30 21:51:12 UTC
Created attachment 15317 [details] [review]
Final (hopefully) patch that incorporates all the above suggestions/fixes. - Updates Idle/Timeout chapters to Gtkmm2
Comment 16 gene 2003-03-30 21:52:42 UTC
Created attachment 15318 [details]
timeout_files.tar.gz - added files for the above patch.
Comment 17 Murray Cumming 2003-03-31 11:59:03 UTC
Thanks. That seems much neater. I'll review and apply it ASAP.
Comment 18 gene 2003-03-31 16:14:25 UTC
In the examples/book/timeout/timerexample.cc file, I forgot to change 
the &lt; and &gt symbols to < and > respectively.  Do you want me to 
resubmit a patch or can you make the changes when you apply the above 
patch? (about 3-4 places in that one file).
Comment 19 Murray Cumming 2003-04-01 06:40:59 UTC
Please revise the patch. I might be able to apply this at the weekend.
Comment 20 gene 2003-04-03 16:25:23 UTC
I'll have a revised patch for you this weekend! =)
Comment 21 gene 2003-04-06 17:17:34 UTC
Patch and tar.gz for the additional files below.  This updated patch
fixes the problem described above, and everything compiles and seems
to work fine.
Comment 22 gene 2003-04-06 17:18:33 UTC
Created attachment 15514 [details] [review]
latest patch to update documentation for timer & idle functions
Comment 23 gene 2003-04-06 17:19:37 UTC
Created attachment 15515 [details]
files.tar.gz - additional files for the above patch
Comment 24 Murray Cumming 2003-04-07 09:15:02 UTC
Great. Sorry to be pedantic, but examples that go in the book should
be in the examples/book directory. Whoever commits this could move
this for you though. As long as that is done then I am very happy for
someone to commit this,

In future please also try to use spaces around operators and commas to
make the code more readable.
Comment 25 gene 2003-04-09 18:12:37 UTC
the attached files.tar.gz should extract the files to the correct 
directories. (ie. the book examples go into their own directories 
under examples/book/, while non book examples go into their own 
directory under the example/ directory).  

If this is not correct, I can redo it.
Comment 26 Murray Cumming 2003-04-10 16:48:14 UTC
Sounds good. Thanks. This should be applied.
Comment 27 Murray Cumming 2003-04-13 13:07:46 UTC
I'm really sorry for the delay.
Comment 28 Ole Laursen 2003-04-14 19:29:56 UTC
Murray, do you want me to commit it?
Comment 29 Murray Cumming 2003-04-15 07:33:22 UTC
Yes, please - to both branches (that might mean glibmm 2.4, and that 
might be difficult so leave this open for 2.4 if necessary)
Comment 30 Ole Laursen 2003-04-15 20:16:59 UTC
Applied to gtkmm 2.2 for now.
Comment 31 Murray Cumming 2003-04-20 12:08:02 UTC
Applied to gtkmm 2.4, and cleaned up the examples in both branches.