Gtk+ Programming in C

Errata Sheet for 1st Printing

This is a work-in-progress that includes known typographical errors and content errors

If you feel that you have something to add to this page, or you have any questions about it, please contact the book author directly by clicking here. Please include the page number, paragraph, and and a description of the problem.

Chapter 11

Code on page 564 should read as follows:
  GtkWidget *pixmap, *ebox;

  ebox = gtk_event_box_new();

  // solicit motion notify events on the event box, and assign
  // a signal handler function

  gtk_widget_set_events( ebox, GDK_POINTER_MOTION_MASK );
  gtk_signal_connect( GTK_OBJECT( ebox ), "motion_notify_event",
    GTK_SIGNAL_FUNC( MotionNotifyCallback ), NULL );

  // create an instance of GtkPixmap, and make it a child of the
  // event box widget

  pixmap = CreatePixmap();
  gtk_container_add( GTK_CONTAINER(ebox), pixmap );