RE: [gtkmm] Gtk::Image and Eventbox



On Mon, 2004-01-19 at 21:25, Murray Cumming Comneon com wrote:
> > I've been using gtkmm for a while, but run across a problem.
> > 
> > I have a window containing a Gtk::Image which is set with a 
> > Gdk::Image / Gdk::Pixmap.
> > 
> > I need to recieve events on this, so I proceeded to put it in 
> > an eventbox.
> > 
> > The problem arises when I try to connect a signal up to it.
> > 
> > With no signal (i.e. the eventbox is doing nothing), it is 
> > fine and the image displays properly.  But when a signal is 
> > connected up, the Image / eventbox is displayed as grey.
> 
> You should probably tell us exactly what signal you are talking about. But I
> guess that you probably just need to use the correct return type in your
> event signal handler:
> http://www.gtkmm.org/gtkmm2/docs/tutorial/html/apbs06.html
> 
> Murray Cumming
> www.murrayc.com
> murrayc usa net
> 
> 

Bingo!  Thanks.

I was using a signal_motion_notify_event.  I was returning true (the
event is handled), but when I change that to false it seems to work.

Thanks for the help
Don




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