[Glade-users] mouse button event



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]