[Glade-users] Glade 3.4.0 Signal newbie problem
- From: ksadil at internode.on.net (Kimet Adil)
- Subject: [Glade-users] Glade 3.4.0 Signal newbie problem
- Date: Wed, 12 Dec 2007 22:06:42 +1000
Hello,
Newbie again sorry, I have spent 18 months away from Glade and I am
having signal callback connection with an Anjuta project. I am using
Anjuta 2.2.2 and Glade3.4.0.
So I follow the procedure:
(1) in Anjuta start a new gtk project and save (this creates the glade
file)
(2) open the glade file in Glade3.4.0
(3) add a button to the window (that is already there)
(4) select the button and choose the handler "on_button1_clicked"
(5) set user data "button1*"
(6) save the glade file
(7) open the callbacks.c file and type:
void on_button1_clicked (GtkButton *button1)
{
printf("button1 pressed\n");
}
(8) save the callbacks.c file
(7) open the callbacks.h file and type:
void on_button1_clicked (GtkButton *button1)
(8) save the callbacks.h file
(9) build the project - compiled successfully
(10) run the program with the following output:
(acc:24138): libglade-WARNING **: could not find signal handler
'on_button1_clicked'.
I am sure the problem is trivial, or heavily documented somewhere, but I
cannot find it. Please help.
Cheers,
Kim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]