开发者

GtkVBox inside GtkFixed panel

I'm trying to develop a GTK desktop application.

I want to 开发者_如何转开发display an image and make some clickable areas on the image. For this reason, I'm using GtkFixed container to put the image and clickable areas(GtkEventBox is used for areas). After the user clicks on a GtkEventBox, I want to display a box in the clicked area. For this reason, I have thought to use GtkVBox to make a box to display.

The problem is that GtkVBox is not visible inside a GtkFixed container parent. So I am stuck at that point. Is it possible to use GtkVBox inside GtkFixed? If not, what is the proper method of doing this job?


I found the answer, it was a mistake that I used gtk_widget_show to make container visible instead of gtk_widget_show_all. It works now

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜