diff options
author | lukefromdc <[email protected]> | 2017-06-25 00:23:03 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-06-27 03:13:51 -0400 |
commit | 0b60b4bc66c8aae24a255b3bf82e07a59a2a9d07 (patch) | |
tree | 995f3670808ed2b5535be37c5d643379daf603ee /libmate-panel-applet | |
parent | e58067434e067af354d1f0f9b98f1c417f034fa3 (diff) | |
download | mate-panel-0b60b4bc66c8aae24a255b3bf82e07a59a2a9d07.tar.bz2 mate-panel-0b60b4bc66c8aae24a255b3bf82e07a59a2a9d07.tar.xz |
GTK 3.18+ fix transparent default panel bg
Transparent panel backgrounds set in GTK themes have not worked since the GTK 3.20 PanelPlug work. This was because NULL in gtk_window_set_background_pattern breaks on alpha values. Force this transparent and the GTK background is properly drawn
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 3 |
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); |