Re: [gtkmm] TreeView widget - Double-Click



>> OK,
>> I have written a little "HelloWorld" program with
>> signal_button_press_event().
>That event is your problem itself. This is a native X-Event, that is wrapped 
>by Gtk+/gtkmm. If you want this event to be activated you must call 
>Gtk::Widget::add_events(Gdk::BUTTON_PRESS_MASK);

from another angle: for various reasons, GTK sets the event mask on
most widgets so that they get button release events but not button
press events. thats presumably because button press events are not
normally needed for typical functionality, and because its easy enough
to add them if needed.

i don't remember offhand if this applies to GtkButton's, but its
certainly true of many other widgets.

--p



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