From 410de37dad6f46c6d28a3ebaf832efa1f31e3141 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 24 Dec 2015 20:59:01 -0500 Subject: Fix rendering of user backgrounds in gtk3.18+ User set panel backgrounds other than colors with an alpha value fail on restarting the panel using gtk3.18 or 3.19. This makes picture and fully opaque color backgrounds set by the user work again and for some reason does not break transparent color backgrounds either. Tested with gtk3.19.5, should work with gtk3.18 as this bug was exactly the same but needs testing with it. --- mate-panel/panel-background.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mate-panel') diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c index d346a4f2..29e963ae 100644 --- a/mate-panel/panel-background.c +++ b/mate-panel/panel-background.c @@ -554,7 +554,13 @@ panel_background_composite (PanelBackground *background) break; } +#if GTK_CHECK_VERSION (3, 18, 0) + /* FIXME, Hack, panel user background fix for gtk+-3.18+ */ + /* this is actually WRONG but fixes rendering of user selected color BG */ + background->composited = FALSE; +#else background->composited = TRUE; +#endif panel_background_prepare (background); -- cgit v1.2.1