key_press_event



I get nothing, nada, zilch, empty set, null , noop, ... when I hit the
mouse
inside the drawing window.  What is wrong PLEASE!!!

In my main I have the following signal connection :
  gtk_signal_connect(GTK_OBJECT (drawing_area)
                    , "expose_event"
                    ,(GtkSignalFunc) expose_event
                    , NULL);
  gtk_signal_connect(GTK_OBJECT(drawing_area)
                    ,"configure_event"
                    ,(GtkSignalFunc) configure_event
                    ,NULL);
  gtk_signal_connect(GTK_OBJECT(drawing_area)
                    ,"key_press_event"
                    ,(GtkSignalFunc) key_press_event
                    ,NULL);
  gtk_signal_connect(GTK_OBJECT(drawing_area)
                    ,"key_release_event"
                    ,(GtkSignalFunc) key_release_event
                    ,NULL);

THen I have :
gint key_press_event(GtkWidget  *widget
                     ,GdkEvent  *event
                     ,gpointer  data)
{
  GdkEventKey*    key = (GdkEventKey*)event;
  fprintf(stderr,"key_press_event : in\n");
  switch (key->keyval)

gint key_release_event(GtkWidget  *widget
                     ,GdkEvent  *event
                     ,gpointer  data)
{
  GdkEventKey*    key = (GdkEventKey*)event;
  fprintf(stderr,"key_release_event : in\n");






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