I am trying to write a function which will wait till the user clicks somewhere within a GTK+ widget (similar to a drawing area) and return mouse co-ordinates. This function should behave modally in that it waits till input is received. Those familiar with the Windows API may find some similarity to the TrackPopupMenu
function which also waits till a menu item is selected.
What I am trying to do here is similar to running a "secondary message loop" using the Windows API. How is it done in GTK+?