Re: signal for an image



hi David,

On Wed, 2006-05-17 at 21:24 +0200, David lacravate wrote:
Hi everyone ,

i have a seemingly simple question . I'd like to click on an image
(Gtk2::Image presumably) and have something happening (another image
appearing) .

How do i do that ? Is there a container in which to add the image to that
will grab the signal ?

Put the Gtk2::Image inside a Gtk2::EventBox and connect to its
'button-press-signal'; you might need to use Gtk2::Widget::add_events on
the event box, to add the 'button-press-mask'.

Ciao,
 Emmanuele.

-- 
Emmanuele Bassi - <ebassi gmail com>
Log: http://log.emmanuelebassi.net




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