Hi 
I've a problem to get current keyboard status. 
(MyWindow->image is a DrawingArea)

I wonder where is the problem. I tell gtk to grab KEY_PRESS, with the right 
mask. Then I link a function to the press and release events, but nothing 
happens, function's not called. If someone can help me ...
Thanks a lot


  gtk_widget_add_events (GTK_WIDGET (MyWindow->image), GDK_KEY_PRESS_MASK);
  gtk_signal_connect (GTK_OBJECT (MyWindow->image), "key_press_event",  
GTK_SIGNAL_FUNC (LastKeyPressed), NULL);  
  gtk_signal_connect( GTK_OBJECT (MyWindow->image),
                      "key_release_event",
                      LastKeyPressed,
                      NULL);



-- 
Jean-Yves Lamoureux
Software Developper
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to