Re: [gtkmm] TreeView widget - Double-Click



On Mit, 2002-12-18 at 21:02, Leslie Polzer wrote:
> On Wed, 18 Dec 2002 18:04:14 +0100
> "Sebastian Stark" <stark sebastian gmx de> wrote:
> 
> > >>signal_event() and signal_button_press_event().
> > Yes I have seen this in the tutorial and tried it. But i don't  know the
> > right syntax to use this standard signals for the TreeView.

> Well. I don't think Gtk provides convenience functions for working with double-clicks, so one has to come up on his own with a solution.
> Yet it should be mentioned that this might not be good in terms of accessibility guidelines.
> Anyway here's a way one might go:

[ lots of hackish code skipped ]

GTK+ *does* recognize double clicks.  Just check for event->type ==
GDK_2BUTTON_PRESS In the signal_button_press_event() handler.

--Daniel





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