Re: TreeView Signal Problem



On Wed, 2005-03-23 at 08:03 -0700, John Taber wrote:
> On Wednesday 23 March 2005 03:58, Murray Cumming wrote:
> > On Tue, 2005-03-22 at 17:46 -0700, John Taber wrote:
> > > Okay, it turns out that a double-click triggers the signal in my TreeView
> > > - yet my other buttons
> 
> > There needs to be a distinction between selection and activation.
> 
> Yes I understand, but how is this done?   Are you implying I'm missing the 
> distinction or gtkmm does not make it?

I'm saying that gtkmm makes the distinction because it is necessary for
many applications.

>   I'm simply trying to make a single 
> click "list box"

Gtk::ComboBox might be more appropriate.

But if you want to respond to single clicks (selection) in a TreeView,
then Gtk::TreeView::Selection::signal_changed() should do what you want.

>  - gtkmm seems to require a tree model for this and the only 
> examples I saw used the row activate signal:
> menuTreeView.signal_row_activated().connect(sigc::mem_fun(*this, 
>         &NewStartupDialog::menuTreeOnClicked) );
> This is what I used but forces a double click - am I missing some setting to 
> activate it on a single click?  

-- 
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]