[gtkmm] signal for double click in editable list view / tree sel?



Dear list members,

I've created an editable list view:

  // Build Tree Model/View
  m_listStoreRef = Gtk::ListStore::create(m_columns);
  m_treeView.set_model(m_listStoreRef);
  m_treeView.set_rules_hint();
  m_treeView.set_size_request();

  // Handle selection
  m_treeSelRef = m_treeView.get_selection();
  m_treeSelRef->set_mode(Gtk::SELECTION_SINGLE);
  // callback for a selection, but I need one for a double click (edit)
  m_treeSelRef->signal_changed().connect(SigC::slot (*this,
&ElementsTable::rowSelectionCallback));


My problem is: I only want to take some action when I
               have EDITED a row.

In documentation I only found signal_changed(), which
is invoked every time I select a row.

Is there a way or do I really have to compare all
the row values myself to find out if a row has been
edited?

TIA,
Andi



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