summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-02-09 16:38:54 +0100
committerAlexander Larsson <alexl@redhat.com>2012-02-09 16:39:23 +0100
commitfed1cfb12293cc8995278d5657d0d49c742f416e (patch)
tree65015551dd03d79457406b8d802bc5c7c09bb97c /gdk
parent6723feae8a314b806ff783507182208107e08007 (diff)
downloadgtk+-fed1cfb12293cc8995278d5657d0d49c742f416e.tar.gz
Make the default background for GdkWindows transparent
With the changes in default CSS to make the default background transparent we ran into issues where intermediate GdkWindow (for instance the view_window in GtkViewport) where we didn't set an explicit background (because before they were always covered). So instead of showing throught the transparent windows were showing the default backgroind of the intermediate window (i.e. black). With this change we also needed to fix GtkViewport, as it was previously relying on the bin and view windows to cover widget->window so that the border was not visible if shadow_type was NONE.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 8dddcd1704..1a64f43cb4 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1420,7 +1420,8 @@ gdk_window_new (GdkWindow *parent,
window->depth = window->visual->depth;
/* XXX: Cache this somehow? */
- window->background = cairo_pattern_create_rgb (0, 0, 0);
+ window->background = cairo_pattern_create_rgba (0, 0, 0, 0);
+ window->has_alpha_background = TRUE;
}
else
{