title: How to handle mouse motion events in GTK3?
body: <p>I am trying to implement the following feature using C/GTK3/Cairo:</p>
  
  <p>-Left click on an <strong>GtkDrawingArea</strong> Widget and printf the coordinates Xo and Yo.</p>
  
  <p>-While keeping the left button down, move the mouse and draw a line conecting (Xo,Yo) to the current mouse position. </p>
  
  <p>-Release the left mouse button and printf("something")</p>
  
  <p>How do I do this? Anyone knows of a good tutorial showing how to handle mouse clicl-move events? </p>
  
  <p>So far, the best I found was this zetcode <a href="http://zetcode.com/gfx/cairo/basicdrawing/" rel="nofollow noreferrer">lines</a> (which shows how to handle mouse click events but not button-down/move/button-up and <a href="https://stackoverflow.com/questions/43712704/how-do-i-set-the-mouse-cursor-to-cross-hair-over-a-gtkdrawingarea">this</a> , which explains how to change the mouse cursor when hovering over a Widget.</p>
  
  <p>Thanks</p>