Re: Can I make GtkPlug transparent?
- From: cecashon aol com
- To: lihao kylinos cn
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Can I make GtkPlug transparent?
- Date: Tue, 27 Jun 2017 00:22:37 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]