Re: [Re: [gtkmm] Treeview/ListStore with customizable edit control]



Nils Nordman <nino nforced com> wrote:
> On Thu, Feb 20, 2003 at 03:14:53PM -0800, Alex Pavloff wrote:
> > 	tree_view_.signal_button_press_event().connect(	
> > 		SigC::slot(*this,
> > &AppWindow::on_tree_view_button_press_event) );
> > 
> > 	tree_view_.add_events(Gdk::EventMask(Gdk::ALL_EVENTS_MASK) );
> > 
> > doesn't result in AppWindow::on_tree_view_button_press_event being called
> > when I click the mouse on the treeview.  The release signal and my
handler
> > work though.
> 
> You have to connect it "before", i.e 
> 
> tree_view_.signal_button_press_event().connect(
>                 SigC::slot(*this,
>                 &AppWindow::on_tree_view_button_press_event), false );

connect_notify() does the same thing, I think, and is clearer, because the
signal then has no return value at all.


Murray Cumming
murrayc usa net
www.murrayc.com




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