summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2015-12-24 20:59:01 -0500
committerWolfgang Ulbrich <[email protected]>2016-01-02 19:16:49 +0100
commit410de37dad6f46c6d28a3ebaf832efa1f31e3141 (patch)
tree5297d4ce7f881bc80cfac9f0a21daa79f8c4b929 /mate-panel
parente785bb69b37d7cb63a1828c2aa324adde6a164bc (diff)
downloadmate-panel-410de37dad6f46c6d28a3ebaf832efa1f31e3141.tar.bz2
mate-panel-410de37dad6f46c6d28a3ebaf832efa1f31e3141.tar.xz
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.
Diffstat (limited to 'mate-panel')
-rw-r--r--mate-panel/panel-background.c6
1 files changed, 6 insertions, 0 deletions
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);