Re: Re: Fake a signal

Re: Re: Fake a signal

On March 2nd, 2008 neocruze says:

well i am trying but no success till now..........

this is the signal that i have to fake ......

g_signal_connect (G_OBJECT (button), "clicked",G_CALLBACK (hello), NULL);

to call function name hello

i tried this ...

gtk_signal_emit_by_name(GTK_OBJECT(button),"clicked",G_CALLBACK (hello), NULL);

it compiled well but on runtime i got this.....

(no:4543): Gtk-CRITICAL **: gtk_signal_emit_by_name: assertion `GTK_IS_OBJECT (object)' failed

so what should i add in

gtk_signal_emit_by_name

.....

Fake a signal By: neocruze (5 replies) Sat, 03/01/2008 - 19:20