Re: signal `clicked' is invalid for instance `0x8c2230'
- From: Emmanuele Bassi <ebassi gmail com>
- To: ååå <ycsunjane gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: signal `clicked' is invalid for instance `0x8c2230'
- Date: Wed, 15 Feb 2012 05:53:31 +0000
hi;
2012/2/15 ååå <ycsunjane 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/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]