Re: SIGNAL question



On Fri, 06 Sep 2002 12:04:32 +0200 "Frank Schafer"
<frank schafer setuza cz> wrote:


But to my main problem. I need a widget, which catches mouse events, and
which has 4 different callbacks for mouse_left, mouse_middle,
mouse_right and mouse_move.
an eventbox or regular button could do this
attach to the "button-press-event" signal (inherited from thw GtkWidget),
the prototype for this callback is 

gboolean    user_function      (GtkWidget *widget,
                                            GdkEventButton *event,
                                            gpointer user_data);

the GdkEventButton contains the information which button was pressed

--again-- where are these things defined.
reference manual for gtkwidget

regards,
        Olivier



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