Re: TreeView with right-click

I'm really not this dumb, I just misread the last email. I swear...

I misread the overridden signal handler bit.  I was thinking of trying to call the on_button_press_event() method from a method connected to signal_button_press_event().

But anyway, yeah, I settled on writing a silly wrapper class that overrides the TreeVew on_button_press_event().

something like:

MyTreeView::on_button_press_event( GdkEventButton* ev )
   TreeView::on_button_press_event( ev ) ;
   return false ;

And then I can just connect a signal afterwards.

On 9/23/06, Murray Cumming <murrayc murrayc com> wrote:
On Sat, 2006-09-23 at 05:48 -0500, Paul Davis wrote:
> [snip]
>         OK. I can't think of a way around that. I guess we should be
>         glad that
>         gtkmm allows you to call the base default signal handler from
>         your
>         overridden default signal handler.
> It do? How's that?

  what I want to do before the default behaviour.


  what I want to do after the default behaviour.

Murray Cumming
murrayc murrayc com

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