Re: Capturing Events in Vte::Terminal



On Tue, 2009-03-10 at 09:18 +1100, Grizzly(Francis Smit) wrote:
> hi  I have a problem I want to capture mouse clicks
> in  Vte::Terminal but I cannot get it to catch the mouse, my code looks
> like so
> 
>         m_term->add_events(Gdk::BUTTON_PRESS_MASK);
>         m_term->signal_button_press_event().
>             connect(sigc::mem_fun(*this, &MainWin::OnButtonPressEvent)
> );                                                                  
>  m_term->show();                     
>         m_scrolledwindowone->show_all_children();

You generally need to connect "before" with X event signals:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apbs06.html

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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