hi; 2012/2/15 孙建希 <ycsunj...@gmail.com>: > foundations of gtk+ development Listing 3-8
> child1=gtk_label_new("go to page 2 to find the answer"); > child2=gtk_label_new("go to page 1 to find the answer"); > > > g_signal_connect(G_OBJECT(child1),"clicked",G_CALLBACK(switch_page),(gpointer) > notebook); > g_signal_connect(G_OBJECT(child2),"clicked",G_CALLBACK(switch_page),(gpointer) > notebook); labels are not buttons; GtkLabel does not have a "clicked" signal. http://developer.gnome.org/gtk/stable/GtkButton.html http://developer.gnome.org/gtk/stable/GtkLabel.html if you copied the source exactly as it is in the book then the book is wrong; you should notify the book author: http://www.gtkbook.com/home.php ciao, Emmanuele. -- W: http://www.emmanuelebassi.name B: http://blogs.gnome.org/ebassi/ _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list