RE: [gtkmm] refTreeSelection->select(iter);



the solution is:

1) tv.signal_button_press_event().connect(SigC::slot(*this,&MainWindow::callback_treeview_clicked), false );

and then

2)
returning 'true' from the callback if the double click has been dealt with...

bool
dis::gui::MainWindow::callback_treeview_clicked(GdkEventButton *event)
{
   if (event->type == GDK_2BUTTON_PRESS)
   {
     if (analysis)
     {
      analysis->Callback_Gui_Double_Clicked();
      return true;
     }
   }

   return false;
}

thanks to all the people who put time into answering the questions on this list!

Danny;

************************************


> since I'm not really familiar with all the details of gtk:
> what would be the best way of reserving the double click for
> my callback
> only?


_________________________________________________________________





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