[Vala] stdout flushing? and button_click_event



Hi all,

I have a button_press_event function in my GtkWidget which should be
called when the mouse button is pressed, however it won't output
anything via stdout.printf(...) on button press. Instead it outputs when
motion_notify_event is called, I'm wondering if there is any requirement
for a flushing of stdout to ensure that the button press text goes out
on screen immediately rather than the next time a printf is called.

Also, is there such a thing as a button_click_event for brief clicks of
the mouse button? I need a button_release to behave differently to a
click event, so I want a momentary click to fire off one function and a
press and release to fire off another.

BR,
 K




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