Developing Linux Applications with GTK+ and GDK

Developing Linux Applications with GTK+ and GDK

Post by Nick Thoma » Wed, 04 Aug 1999 04:00:00



Hi all,

I have recently purchased a book titled
'Developing Linux Applications with GTK+ and GDK' by Eric Harlow.

This book is full of mistakes. Many of the example programs have
mistakes such as:
1) functions requiring return value with no return statement.
2) Variables used but not declared.
3) Variables declared but not used.
4) Lines of code out of sequence.
5) typing mistakes.

You can accept some errors in books but not in an educational book.
Fortunately I am an experienced C programmer and spotted the mistakes
and know how to fix them, but a novice programmer would be seriously
frustrated.

Anybody else read this book?

Reply to newsgroup

Nick
--
Nick Thomas

WWW: http://www.nhthomas.freeserve.co.uk

 
 
 

Developing Linux Applications with GTK+ and GDK

Post by msimp.. » Thu, 05 Aug 1999 04:00:00


I have this book also. There are mistakes. Unfortunately it is the only
book on GTK. A lot of the code are snippets of a complete program; the
complete programs can be downloaded. When compiling some of these,
warnings or errors occur because the code was written for an earlier
version of GTK.

There are two other sources I used for learning GTK-- the tutorial
(which needs some work) and through reading the GTK and GDK header
files.



> Hi all,

> I have recently purchased a book titled
> 'Developing Linux Applications with GTK+ and GDK' by Eric Harlow.

> This book is full of mistakes. Many of the example programs have
> mistakes such as:
> 1) functions requiring return value with no return statement.
> 2) Variables used but not declared.
> 3) Variables declared but not used.
> 4) Lines of code out of sequence.
> 5) typing mistakes.

> You can accept some errors in books but not in an educational book.
> Fortunately I am an experienced C programmer and spotted the mistakes
> and know how to fix them, but a novice programmer would be seriously
> frustrated.

> Anybody else read this book?

> Reply to newsgroup

> Nick
> --
> Nick Thomas

> WWW: http://www.nhthomas.freeserve.co.uk

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Developing Linux Applications with GTK+ and GDK

Post by Ian Thompson Bel » Fri, 06 Aug 1999 04:00:00


I am reading it now because it was the only book I could find on gtk.  I
have not yet tried any of the programmes.  Are there too many errors to
list?

Ian


> I have this book also. There are mistakes. Unfortunately it is the only
> book on GTK. A lot of the code are snippets of a complete program; the
> complete programs can be downloaded. When compiling some of these,
> warnings or errors occur because the code was written for an earlier
> version of GTK.

> There are two other sources I used for learning GTK-- the tutorial
> (which needs some work) and through reading the GTK and GDK header
> files.



> > Hi all,

> > I have recently purchased a book titled
> > 'Developing Linux Applications with GTK+ and GDK' by Eric Harlow.

> > This book is full of mistakes. Many of the example programs have
> > mistakes such as:
> > 1) functions requiring return value with no return statement.
> > 2) Variables used but not declared.
> > 3) Variables declared but not used.
> > 4) Lines of code out of sequence.
> > 5) typing mistakes.

> > You can accept some errors in books but not in an educational book.
> > Fortunately I am an experienced C programmer and spotted the mistakes
> > and know how to fix them, but a novice programmer would be seriously
> > frustrated.

> > Anybody else read this book?

> > Reply to newsgroup

> > Nick
> > --
> > Nick Thomas

> > WWW: http://www.nhthomas.freeserve.co.uk

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

 
 
 

Developing Linux Applications with GTK+ and GDK

Post by Damond Walke » Sat, 07 Aug 1999 04:00:00



>I am reading it now because it was the only book I could find on gtk.  I
>have not yet tried any of the programmes.  Are there too many errors to
>list?

    The back cover of the book states that it's for experienced C
programmers.  If you don't know C you might not notice errors.  If you do,
you will spot them and code around them.  It's not that bad of a book...
 
 
 

Developing Linux Applications with GTK+ and GDK

Post by Brian Gilma » Mon, 09 Aug 1999 04:00:00


I too have this book (however I am NOT an experienced C programmer)...Could
you list any *serious* mistakes you find  as a service to the rest of us poor
newby souls? TIA
                                                                Brian


> >I am reading it now because it was the only book I could find on gtk.  I
> >have not yet tried any of the programmes.  Are there too many errors to
> >list?

>     The back cover of the book states that it's for experienced C
> programmers.  If you don't know C you might not notice errors.  If you do,
> you will spot them and code around them.  It's not that bad of a book...

 
 
 

1. Display images using Gtk/Gdk/Gdk-pixbuf

Hi,

I'm currently working on an simple image viewer application that will be
  extended with some quite specific features later on.
I decided to use Glade to produce the structure and Gdk and Gdk-pixbuf
for image loading etc.
Since this is my first try with gtk/gdk etc I'm getting quite confused
about the different kinds of image structures.
Having successfully loaded a pixbuf using gdk_pixbuf_new_from_file I'm
wondering how to make it show in a specific GtkPixmap (or GtkImage).
I tried to use gdk_pixbuf_render_pixmap_and_mask to render the pixbuf to
the pixmap that was previously created in the code produced by glade,
but nothing happens ;(

Can anybody give me a hint about how to visualize a pixbuf in a
GtkPixmap or GtkImage?

thanks in advance

Andy

Gtk 1.2
Gdk-pixbuf 0.10.0

2. Help!! my fdisk problem

3. GTK,GTK+,Qt, etc.., why not Swing for Linux GUI applications?

4. Problems with Quantum AT-Bus HDs?

5. OOP Wrapper lib for gtk+, gdk, kde

6. HP DeskJet: a little problem

7. GTK/GDK example code anywhere?

8. special character `

9. GTK+ and gdk-imlib

10. Gdk error message (gtk+ apps die)

11. gtk gdk available for AIX

12. damn swell book on GTK+ and GDK

13. gtk/gdk setup