You can emit signals any time you want with:
edje_object_signal_emit(edje, "my,fancy,signal", "mysource");
For debugging, I like to register a stdin callback that let's me type
in a signal on STDIN which is then emitted in the application. Then
I can simulate events for the GUI and the application:
int main(void) {
....
ecore_main_fd_handler_add(STDIN_FILENO, ECORE_FD_READ, stdin_cb, NULL,
NULL, NULL);
....
}
int stdin_cb(void *data, Ecore_Fd_Handler *fd_handler)
{
int fd,num;
char buf[1024];
fd = ecore_main_fd_handler_fd_get(fd_handler);
num = read(fd, buf, sizeof(buf));
if(num > 1)
{
buf[num-1] = 0;
printf("Emmiting Signal `%s'\n", buf);
edje_object_signal_emit(edje, buf, "stdin");
}
return 1;
}
Hope that helps.
Regards,
Matt
On Thu, Oct 23, 2008 at 4:03 AM, flower-mei <[EMAIL PROTECTED]> wrote:
> hi all,
>
> Just forgive me for my trouble for you
> I know that the animate can be started when the signal be emited,
> but I don't know other way to emited the signal or set up the signal
> except when the mouse clicked signal
> is emitted.
>
> thanks ! :)
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel