nubela
nubela

Reputation: 17284

How can I have a (semi) transparent background in GTK Sharp?

How can I have a (semi) transparent background in GTK Sharp?

Upvotes: 2

Views: 1595

Answers (2)

Pawel
Pawel

Reputation: 1376

Since Gtk version 3.8 (released in 2013) you shall use gtk_widget_set_opacity() method instead. They have the same prototype (ofc GtkWidget pointer instead of GtkWindow).

While on Windows it shall always work, on X11 this has any effect only on X screens with a compositing manager running.

Upvotes: 0

ptomato
ptomato

Reputation: 57870

In C it's gtk_window_set_opacity(window, 0.5); I don't know if this function is wrapped in Gtk#.

Upvotes: 3

Related Questions