RE: [gtkmm] refTreeSelection->select(iter);
- From: "danny van elsen" <danny_van_elsen hotmail com>
- To: Murray Cumming Comneon com, gtkmm-list gnome org
- Subject: RE: [gtkmm] refTreeSelection->select(iter);
- Date: Sat, 10 May 2003 12:42:22 +0200
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]