Slashdot Log In
Review:Developing Linux Applications with GTK+ and GDK
from the must-read-must-read dept.
| Developing Linux Applications with GTK+ and GDK | |
| author | Eric Harlow |
| pages | |
| publisher | New Riders |
| rating | 6 |
| reviewer | A.M. Kuchling |
| ISBN | |
| summary | A reasonably good first book on GTK+, though it's not likely to become the definitive one unless the second edition makes some minor improvements. |
|
The GTK+ GUI toolkit was developed for the GIMP, and was subsequently adopted by both the current Mozilla codebase and the GNOME project. I believe this is the first formally published documentation for the GTK+ toolkit. (It is not a generic guide to application development under Linux, even though the spine of the book reads only "Developing Linux Applications".)
The book provides good coverage of the fundamentals that you need to know: the basic data structures provided by GLIB; the overviews of buttons, menus, dialog boxes, and all the other major widgets; and four sample applications -- a calculator, text editor, Minesweeper game, molecule viewer, and a simple Defender game. Harlow's development of each topic is understandable and helpful, making the book a vast improvement over struggling through the toolkit's source code, and well worth purchasing if you want to program with GTK+.
My one major problem with the book is, surprisingly, wishing there were more screenshots in it. The opposite is true of most computer books, because a screenshot and a paragraph of text can be made to fill a whole page, and helps immensely in padding out a book to make it look bulky and comprehensive. This book goes to the opposite extreme; there's no screenshot of the calculator application at all, and only one or two screenshots for each of the other sample programs.
Another flaw is that the book seems to contain every single line of code for the sample applications. As a general rule, in any given C program, 90% of the code is uninteresting; only 10% contains the heart of the program, and the rest is all scaffolding. I would have preferred to see a dissection of the central portions of each program in pseudocode and small chunks of C code, relying on the Web to get the complete distribution, instead of having to flip past page after monospaced page of program listings. So What's In It For Me?-->
This book rates 6 out of 10 points, because it covers GTK+ quite well, and provides you with the basic information you'll need to hack with it. It would get 7 out of 10 points if there were fewer pages of code and more illustrative screenshots.
Purchase this book over at Computer Literacy.
Table of Contents
- Introduction to GTK+
- GLIB
- Developing GUI Applications
- Basic Widgets
- Menus, Toolbars, and Tooltips
- More Widgets: Frames, Text, Dialog Boxes, File Selection Dialog Box, Progress Bar
- Writing a Calculator Application
- Developing a Simple Word Processor
- Minesweeper
- Graphics Drawing Kit
- Styles, Colors, Fonts, Cursors, and Referencing
- Molecule Viewer Using GDK
- Sprites and Animation
- Trees, Clists, and Tabs
- Creating Your Own Widgets
- A farily accurate review by Anonymous Coward (Score:1) Monday March 22 1999, @02:37AM
- BTW I'm not RMS by Anonymous Coward (Score:1) Monday March 22 1999, @02:50AM
- Agreed by Anonymous Coward (Score:1) Monday March 22 1999, @04:21AM
- What about writing style? by Anonymous Coward (Score:2) Monday March 22 1999, @05:03AM
- Damaged by SunOS by Brian Feldman (Score:1) Monday March 22 1999, @10:03AM
- Trust me, use the toolkit. by Surazal (Score:1) Monday March 22 1999, @03:20AM
- That one's called "Programming with Qt" by jabbo (Score:1) Monday March 22 1999, @07:24PM
- Trust me, use the toolkit. by Bryan Ischo (Score:1) Monday March 22 1999, @03:57AM
- This looks promising but... by Bryan Ischo (Score:1) Monday March 22 1999, @03:59AM
- Please don't bother slamming Motif by Bryan Ischo (Score:1) Monday March 22 1999, @11:25AM
- Trust me, use the toolkit. by Bryan Ischo (Score:1) Tuesday March 23 1999, @06:51AM
- But he wanted to be like you. by bkosse (Score:1) Monday March 22 1999, @01:23PM
- Agreed by Jerky McNaughty (Score:1) Monday March 22 1999, @03:29AM
- The best gtk docs are all free by Jerky McNaughty (Score:1) Monday March 22 1999, @05:56AM
- OSS documentation quality by Daverz (Score:1) Monday March 22 1999, @04:29PM
- Gtk rocks. by Daverz (Score:1) Monday March 22 1999, @04:34PM
- Clarification by Daverz (Score:1) Monday March 22 1999, @08:10PM
- Platform Dependant Book? by Daverz (Score:1) Monday March 22 1999, @08:19PM
- FUD fighting. C++ rules :) by mill (Score:1) Wednesday March 24 1999, @01:00AM
- Platform Dependant Book? by Bander (Score:1) Monday March 22 1999, @02:44AM
- Trust me, use the toolkit. by Q*bert (Score:1) Monday March 22 1999, @05:04AM
- This looks promising but... by Q*bert (Score:1) Monday March 22 1999, @05:07AM
- GTK+ The awful truth by AMK (Score:1) Monday March 22 1999, @03:52AM
- GTK-- Book? by saw2th (Score:1) Monday March 22 1999, @08:11AM
- OSS documentation quality by judd (Score:2) Monday March 22 1999, @11:40AM
- Platform Dependant Book? by stripes (Score:1) Monday March 22 1999, @03:36AM
- Damaged by SunOS by stripes (Score:1) Tuesday March 23 1999, @09:59AM
- Agreed by Kenelson (Score:1) Monday March 22 1999, @09:41PM
- Trust me, use the toolkit. by Ben Hutchings (Score:1) Tuesday March 23 1999, @02:09AM
- GTK themability is excellent by alecu (Score:1) Monday March 22 1999, @02:37AM
- Some extra comments by larien (Score:1) Monday March 22 1999, @03:42AM
- GTK-- Book? by doog (Score:1) Monday March 22 1999, @07:02AM
- Thanks for the comments by linuxnerd (Score:2) Monday March 22 1999, @11:51AM
- Some extra comments by ocie (Score:1) Monday March 22 1999, @08:04AM
- God preserve us from the half educated by SimonK (Score:1) Monday March 22 1999, @03:49AM
- GTK+ The awful truth by AraQniD (Score:1) Monday March 22 1999, @03:23AM
- The first chapters were downloadable by sTeF (Score:1) Monday March 22 1999, @03:15AM
- This looks promising but... by Rabid Wombat (Score:1) Monday March 22 1999, @03:31AM
- This looks promising but... by deeny (Score:1) Monday March 22 1999, @02:13PM
- OSS documentation quality by ErikSev (Score:1) Monday March 22 1999, @04:36PM
- !Open Source(tm) by ErikSev (Score:1) Monday March 22 1999, @04:37PM
- Why was this put at -2? by ErikSev (Score:1) Monday March 22 1999, @04:45PM
- Another book idea by daviddennis (Score:2) Monday March 22 1999, @08:19AM
- This looks promising but... by Neuroprophet (Score:1) Monday March 22 1999, @02:53AM
- What a great reason not to use Qt! by st. augustine (Score:1) Monday March 22 1999, @09:39PM
- What, precisely, is wrong with Xm? by AJWM (Score:1) Monday March 22 1999, @06:10AM
- Agreed by Mr T (Score:1) Monday March 22 1999, @04:28AM
- I was disappointed by this book. by Mr T (Score:1) Monday March 22 1999, @04:39AM
- Dang by BeanThere (Score:1) Monday March 22 1999, @11:13AM
- Choice, C vs C++ etc. by BeanThere (Score:1) Monday March 22 1999, @11:26AM
- Try FLTK (www.fltk.org) by BeanThere (Score:1) Monday March 22 1999, @11:32AM
- You can afford books? by BeanThere (Score:1) Monday March 22 1999, @11:41AM
- FUD fighting. C++ rules :) by BeanThere (Score:1) Tuesday March 23 1999, @01:16PM
- Agreed by swingerman (Score:1) Monday March 22 1999, @03:38AM
- BTW I'm not an AC anymore ;) by PaulJS (Score:1) Monday March 22 1999, @04:10AM
- GTK+ The awful truth by tenor (Score:1) Monday March 22 1999, @04:13AM
- This looks promising but... by twall (Score:1) Monday March 22 1999, @07:02AM
- 28 replies beneath your current threshold.
