0

I'm looking for a way to set a background image to my window. Something like the gnome-weather application:

enter image description here

The image is on the background and other components are on it.

That's my current window:

enter image description here

And I want a background more or less like this:

enter image description here Background edited with Gimp

I downloaded the gnome-weather code to find out how it was done the background. I think it was done with CSS but I'm not sure, because JS is not my forte.

Matheus Saraiva
  • 1,144
  • 1
  • 11
  • 33
  • 2
    Possible duplicate of [How to set bg image of a window in a GTK3 application](https://stackoverflow.com/questions/6158171/how-to-set-bg-image-of-a-window-in-a-gtk3-application) ? – Tiger-222 Aug 23 '16 at 14:57
  • Apparently yes http://www.gtkforums.com/viewtopic.php?f=3&t=988&p=195278&hilit=GTK+with+CSS%3A+Background+images#p195278, but a python code would be better. Well.... I'll see if I can get from this example in C. – Matheus Saraiva Aug 23 '16 at 15:09
  • 1
    Check this link: [GTK, Python and CSS are an awesome combo](http://wolfvollprecht.de/blog/gtk-python-and-css-are-an-awesome-combo/). You will find what you're looking for ;) – Tiger-222 Aug 23 '16 at 15:16
  • 1
    As a (less good) alternative, you could put a GtkImage in a GtkOverlay to display all other widgets above it. – Aran-Fey Aug 24 '16 at 09:01

0 Answers0