Gtk buttons over a Gtk drawing area

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 16:24:50

Suggestions:

  1. Put both the drawing area and the buttons inside a GtkFixed container. Probably not the best solution, because GtkFixed has no way of controlling the z-ordering (other than the order in which you add the widgets to it?)
  2. Instead of using GtkDrawingArea, use a canvas widget that can include other widgets, such as GooCanvas.

Why no other library? Any specific reason?

There is a library for exactly what you want

http://geocanvas.sourceforge.net/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!