diff options
author | lukefromdc <[email protected]> | 2016-02-27 01:21:26 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-02-27 12:08:43 +0100 |
commit | 0fef6a917e9f60c52d0e4fb5b0d5ef9f8371a5f7 (patch) | |
tree | 4a6b343e779db41118173923b1909b61d1495bf8 /libmate-panel-applet | |
parent | b21ae316e9c500db40129870abb1bd9e0013e950 (diff) | |
download | mate-panel-0fef6a917e9f60c52d0e4fb5b0d5ef9f8371a5f7.tar.bz2 mate-panel-0fef6a917e9f60c52d0e4fb5b0d5ef9f8371a5f7.tar.xz |
GTK 3.20 force custom BG drawing on applets
Use gdk_window_ensure_native to applets when and only when a custom background is selected.
Doing so when the system bg is selected will turn applets clear,
so will not doing so when a custom background is selected.
Keep all this behind if # GTK_CHECK_VERSION (3, 19, 0) so as not to screw up anything
in older GTK versions.
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 3f683da0..17de8e13 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1801,9 +1801,15 @@ mate_panel_applet_change_background(MatePanelApplet *applet, break; case PANEL_COLOR_BACKGROUND: gdk_window_set_background_rgba(window,color); +#if GTK_CHECK_VERSION (3, 19, 0) + gdk_window_ensure_native (window); +#endif break; case PANEL_PIXMAP_BACKGROUND: gdk_window_set_background_pattern(window,pattern); +#if GTK_CHECK_VERSION (3, 19, 0) + gdk_window_ensure_native (window); +#endif break; default: g_assert_not_reached (); |