book main | contents | reviews | updates
| Index |
|
The index for The Official GNOME 2 Developer's Guide is incorrect; it is off by two pages per entry. We apologize for this error and for any inconvenience it may cause you. As with all of our books, we offer a 100% returns guarantee. If you like, you may return your book to us (in saleable condition) for a full refund of your purchase price. Find our address at the bottom of the About page. Otherwise, we offer you the correct index here, which you may download as PDF. If you would prefer a printed copy, please email your name and mailing address to index [at] nostarch [dot] com and we'll send you one. |
| Corrections |
|
p. 9 The code example declares my_chunk to be of type GMemChunk. It should instead be declared as a pointer, so instead of: GMemChunk my_chunk it should be: GMemChunk *my_chunk |
|
p. 11 The last two examples in the code snippet: /* the same thing, with g_mem_chunk_new */ foo = g_mem_chunk_new(footype, pile_of_mem); /* the same thing, but zero out the memory */ foo = g_mem_chunk_new0(footype, pile_of_mem); The calls (and the first comment) should be to the macros g_chunk_new and g_chunk_new0 rather than to g_mem_chunk_new and g_mem_chunk_new0. The paragraph following the example beginning "The macros' purposes..." should also reference g_chunk_new and g_chunk_new0 as the memory chunk counterparts of g_new and g_new0 rather than the g_mem_chunk functions. |
|
p. 12 The last code example ("Here is a short quark demonstration program:") my_quark should be defined as a GQuark, not a pointer to a GQuark. The line: if (!g_quark_try("Cottage Cheese")) should be: if (!g_quark_try_string("Cottage Cheese")) |
|
p. 36 The second function call to g_string_free() should be: orig_str = g_string_free(s2, FALSE); /* s2 is gone; orig_str points to its old str field */ |
|
p. 256 The function: gint gnome_score_log(gfloat score, const gchar *score, gboolean descending) should be: gint gnome_score_log(gfloat score, const gchar *level, gboolean descending) |
|
p. 290 In Chapter 4 of the Gnome 2 examples, there's a syntax error in one of the files. On line 186 of druid.c, it reads: the bar at the top remains.\n\n but it should be: the bar at the top remains.\n\n\ |
|
p. 336 In the miracletext.desktop example file: The second line (Name=Example) should be removed The Name and Comment entries should be swapped The file names should refer to miracletext, not "example" The corrected file should look like this: [Desktop Entry] Name=MiracleText Word Processor Name[de]=MiracleText Textverarbeitung Name[es]=MiracleText procesador de textos Comment=Edit documents with MiracleText Comment[de]=Dokumente bearbeiten mit MiracleText Comment[es]=Edita documentos con MiracleText TryExec=miracletext Exec=miracletext %U Icon=miracletext.png Terminal=0 Type=Application Categories=Application |
| Note: A reader commented that on page 81, media_set_orig_package implies that media_set_property calls g_object_notify, but the call is not present in the code on page 79. |
book main | contents | reviews | updates
Copyright 2008 by No Starch Press