I want to make a gtk+-3.0
Vala window width 50% transparency (or more), but after 2 hour searching I just found over complexed examples or C
examples which I couldn't convert to Vala.
Do some of you know a simple example of a transparent gtk3 window in Vala?
Asked
Active
Viewed 330 times
0

DanielFvM
- 45
- 3
-
You are expected to make an effort. Please show your code and state where you are having trouble. Also see [Strange and maddening rules](https://www.joelonsoftware.com/2018/04/23/strange-and-maddening-rules/), [Why is the “how to move the turtle in logo” question closed?](https://meta.stackexchange.com/a/158334) and [How to create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve). – jww Jun 15 '19 at 10:24
1 Answers
1
You should not do this. Gtk+ is just not designed that way. You will have problems with different output backends. Your users will have problems with their user experience.
If you really want to, you have to translate one of the code examples in C, Python, etc. that you can find on the internet.
Here are two such examples:
How to make Gtk+ window background transparent?
http://www.kcjengr.com/programing/2017/11/02/transparent-gtk-window.html
It shouldn't be too hard to translate those into Vala. If you encounter problems, ask new questions about the concrete problems.

Jens Mühlenhoff
- 14,565
- 6
- 56
- 113