回复: Can I make GtkPlug transparent?

2017-06-29 Thread 李浩
Thanks you Eric. I will keep trying on it. Regards, Lihao -- 原始邮件 -- 发件人: "cecashon"; 发送时间: 2017年6月27日(星期二) 中午12:22 收件人: "lihao"; 抄送: "gtk-app-devel-list"; 主题: Re: Can I make GtkPlug transparent? It looks like both t

Re: Can I make GtkPlug transparent?

2017-06-26 Thread Eric Cashon via gtk-app-devel-list
It looks like both the plug and socket draw to the same window. That would mean that you would have to draw your window background in both the plug and socket "draw" callback functions. There is a plug2.c and socket2.c in the following folder that sets the transparency on the different window

Re: Can I make GtkPlug transparent?

2017-06-26 Thread 李浩
Hi Eric, Thanks for your reply! I'm sorry I didn't express the problem clearly. I want to make GtkPlug transparent, so I can see the background of GtkSocket. In other words, if I set a background image on GtkSocket, I hope I can see the image even if I embed a GtkPlug on it. Is there any way to

Re: Can I make GtkPlug transparent?

2017-06-26 Thread Eric Cashon via gtk-app-devel-list
Hi Lihao, If you set the socket color you will be OK. You won't have to worry about the transparency of the plug, in that case. For setting the transparency for the different windows you can try setting the window, socket and plug widgets with the following. It worked on GTK3.18. Couldn't g

Can I make GtkPlug transparent?

2017-06-26 Thread 李浩
Hi, I encountered a problem when using GtkPlug and GtkSocket. I use CSS to set the background of GtkSocket to red and then use CSS to make GtkPlug transparent. I think I can see the red color because GtkPlug has been set to transparent, but it's actually black. I can't figure out why the effect