Re: SIGNAL question
- From: Frank Schafer <frank schafer setuza cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: SIGNAL question
- Date: 06 Sep 2002 14:49:01 +0200
On Fri, 2002-09-06 at 14:09, Olivier Sessink wrote:
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
Hi Olivier,
thanks for your reply, reading through the ``Writing your own widgets''
chapter of the tutorial and through the sources of some widgets in the
gtk+ source tree has put me in the same direction.
Probably I'll try both possibilities this weekend. Learning an API is
diving into it ;o)
Thanks again and regards
Frank
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]