(no subject)



Hi all:

now i am looking inside the gtk+-1.2.10 signal system.

but i have a confused problem on the signal system.

i find there is a Function called  " void gtk_main_do_event (GdkEvent *event)"
the function does  with a lot of things on signal message map.
and i know gtk_main() can block main thread untile call gtk_main_quit() function.
so i think the gtk_main_do_event() function should be called by gtk_main() function.
but i find the gtk_main_do_event() function is being called by gtk_init(),not by gtk_main().

i expected to find a process in gtk_main() function like following,but not find.
oppositly , i find the process is in the gtk_init() function.
switch(event->type)
{
      GtkWidget *parent;
  case GDK_NOTHING:
       signal_num = -1;
       break;
  case GDK_BUTTON_PRESS:
      signal_num = BUTTON_PRESS_EVENT;
      break;
  case GDK_BUTTON_RELEASE:
     ..........
     ..........
    
     .......... 
}

it's my problem .

anyone is doing the same thing as me or know the answer?
maybe we could talk about it.
please help me.
Thanks a lot for your help!

Have a nice day!

kason



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]