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 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 windows to try to 
figure out how it could work. With cairo you can draw or load an image. You 
would just have to do it twice in this case.
 
 Might be stretching GTK a little here. Should work.
 
 https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/Csamples
 
 Eric
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to