Hi Decapode,
In fact you can handle all these events with one callback. Go to :
http://gtk.php.net/manual/en/gtk.gtkwidget.signal.button-press-event.php
and you will see an short example. You can visit :
http://gtk.php.net/manual/en/gdk.gdkevent.php
http://gtk.php.net/manual/en/gdk.gdkeventbutton.php
to see a description of GdkEvent and GdkEventButton which
property you will handle - there is a usefull list of constants to use
instead of digits ( 1, 2, 3) in a switch statement.
regards,
Radko
Decapode Azur wrote:
hi, 2 questions this evening:
- Howto make a sub-menu inside a main menu?
- Howto make raise a new window from a right-clic on a gtkButton*?
(in fact I would like to connect different callbacks on left, right and middle clic)
Could someone give me simple samples exemples?