[Glade-users] mouse button event
- From: chr meyer nerim net (christophe Meyer)
- Subject: [Glade-users] mouse button event
- Date: Sun, 25 Jan 2004 15:11:27 +0100
Hi all,
I've designed a short example to learn how the mouse works.
It's made of an image whith a button_press_event, and a
button_release_event. But when i press a mouse button nothing happens.
This is my callbacks file :
gboolean
on_image1_button_press_event (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
{
printf("Press event\n");
return FALSE;
}
gboolean
on_image1_button_release_event (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
{
printf("Release event\n");
return FALSE;
}
What's wrong with that ?
Have i forgotten anything ?
Thanks, Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]