key_press_event
- From: Billy Patton <bpatton dal asp ti com>
- To: gnome <gnome-list gnome org>, gtk <gtk-list gnome org>
- Subject: key_press_event
- Date: Mon, 15 Jan 2001 07:00:26 -0600
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]