title: How to embed an SDL_Surface into GTK+
body: <p>I am writing a game using SDL, but would like to use GTK+ for controls. I therefore need to embed an SDL_Surface into GTK+. How should I do this?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>The game would be a tile-based transport simulator (like <a href="https://en.m.wikipedia.org/wiki/OpenTTD" rel="nofollow noreferrer">OpenTTD</a>), but instead of using SDL to display the game UI (<a href="https://screenshots.macupdate.com/JPG/22972/22972_1489413666_scr.jpg" rel="nofollow noreferrer">screenshot</a>), I would use GTK+. </p>
  
  <p>(I find OpenTTD's SDL-based GUI quite clumsy because it doesn't integrate with the OS and therefore doesn't support things like copy-paste, control with the arrow and tab keys, etc.)</p>
  
  <p><a href="https://i.stack.imgur.com/nVWD0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nVWD0.png" alt="enter image description here"></a></p>