Hi!
I'm Pike newbie so bear with me...
Is there any way to catch double clicks from mouse input in the GTK module?
Reference manual - GTK.Menu/example
GTK.Menu menu = create_menu(); GTK.Window window = create_window(); window->signal_connect( "button_press_event", lambda(GTK.Menu m, GTK.Window w, mapping e ) { if( e->button == 3 ) menu->popup(); }, menu );
This code produce a right click popup menu.
In C and Python mapping e can be checked like e->type for GDK_2BUTTON_PRESS or gtk.gdk.BUTTON_PRESS. However in Pike these constants doesn't exists (?). Tried a few variations.
The mapping e does know that a double click occured because Pike compiler dumps some debugging that mapping e is a GDK.Event(button_press) for single click and GDK.Event(2button_press) for double clicks.
Any ideas?
/ Tor