summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-panel-applet/mate-panel-applet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index 9ec18493..5efde6b3 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -1538,7 +1538,8 @@ mate_panel_applet_change_background(MatePanelApplet *applet,
_mate_panel_applet_apply_css(GTK_WIDGET(applet->priv->plug),type);
switch (type) {
case PANEL_NO_BACKGROUND:
- gdk_window_set_background_pattern(window,NULL);
+ pattern = cairo_pattern_create_rgba (0,0,0,0); /* Using NULL here breaks transparent */
+ gdk_window_set_background_pattern(window,pattern); /* backgrounds set by GTK theme */
break;
case PANEL_COLOR_BACKGROUND:
gdk_window_set_background_rgba(window,color);