summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-08-26 17:19:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-08-26 18:40:06 -0400
commit95be14bd5ec45f61c78a28108d7b071ebaaec378 (patch)
treee4d815d153bd2e4b9f814638c11064e47972be36
parent9b6abc6efe40e965e3d8f68c1c20e84676374e80 (diff)
downloadnautilus-95be14bd5ec45f61c78a28108d7b071ebaaec378.tar.gz
Make sure the desktop window is transparent
The code was just assuming that setting an rgba visual is enough to make a window see-through. This assumption was invalidated by the GTK+ csd work that happened this cycle. We can fix this by explicitly setting the background color of the desktop window. https://bugzilla.gnome.org/show_bug.cgi?id=706665
-rw-r--r--src/nautilus-desktop-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index d99e9fb0e..3ea50bde0 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -132,6 +132,7 @@ nautilus_desktop_window_new (GtkApplication *application,
{
NautilusDesktopWindow *window;
int width_request, height_request;
+ GdkRGBA transparent = {0, 0, 0, 0};
width_request = gdk_screen_get_width (screen);
height_request = gdk_screen_get_height (screen);
@@ -151,6 +152,8 @@ nautilus_desktop_window_new (GtkApplication *application,
* Note that nautilus_desktop_window_init is too early to do this.
*/
nautilus_desktop_window_update_directory (window);
+ gtk_widget_override_background_color (GTK_WIDGET (window), 0, &transparent);
+
return window;
}