Re: [gtkmm] TreeView and callbacks



Hello Daniel,
        No I wish to catch a double click..

Steve
On Fri, 2002-08-02 at 07:58, Daniel wrote:
> Hi
> 
> If it is a changed selection you want to "catch" you can use the following code:
> 
> Glib::RefPtr<Gtk::TreeSelection> selection = m_TreeView.get_selection();
> 
> selection->signal_changed().connect(slot(*this, &My_ListStore::on_selection_changed));
> 
> /Daniel
> 
> On Fri, 02 Aug 2002 07:37:39 -0400
> steve przepiora org <steve przepiora org> wrote:
> 
> > I am having a problem with some gtkmm callbacks and was wondering if someone 
> > could help me out. I have a TreeView and wish to attach to the 
> > signal_button_press but it doesn't seem to be calling the callback.
> > 
> > I am attaching the callback with:
> > m_TreeView.signal_button_press_event().connect(SigC::slot(*this, 
> > &ProjectView::on_cell_button_press_event));
> > 
> > and the callback is defined as:
> > bool ProjectView::on_cell_button_press_event (GdkEventButton* event)
> > 
> > It appears to not call the callback at all.
> > 
> > Thanks,
> > Steve
> > 
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> > 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 






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