Drawing Area and Mouse Events



Hi there!

I'm using gtk_window_new() and gtk_drawing_area_new() functions to draw some pixbufs over a background.

Now I need to "click" with the mouse over this drawing area, and I need to obtain the coordinates of the mouse pointer at that spot to decide wich callback should I call.

I think this kind of feature is not suported by GTK itself. I'm I correct???

What functions must I use (GDK, Gnome, ...)???


Thanks in advance!

+-----------------------------------+
|    José Pedro S. Romão Machado    |
|       (DET/LEET - Nº15993)        |
+-----------------------------------+
|      Universidade de Aveiro       |
| Dep. de Elect. e Telecomunicações |
|           (www.ua.pt)             |
+-----------------------------------+



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