Re: TreeView with right-click
- From: "Paul Davis" <pjdavis engineering uiowa edu>
- To: gtkmm-list gnome org
- Subject: Re: TreeView with right-click
- Date: Sat, 23 Sep 2006 06:20:14 -0500
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:
bool
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?
MyTreeView::on_button_press_event()
{
what I want to do before the default behaviour.
TreeView::on_button_press_event()
what I want to do after the default behaviour.
}
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]