Re: Capturing Events in Vte::Terminal



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();
>
>   
Hmmmm not looking good for a C++ solution to this, been going through
the gnome-terminal source and it looks like they build a custom
cellrender widget, doing this stuff in C is not fun there code is long
winded. 

does anyone know of any C++ code that uses Vte::Terminal and captures
the mouse events??  if so I like to know how some source would be good,
thanks

-- 
  In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.geekcode.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G e++(+++) h-- r- y-
------END GEEK CODE BLOCK------



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