diff options
author | lukefromdc <[email protected]> | 2016-03-24 23:33:48 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-03-25 11:01:42 +0100 |
commit | 17a0277ecbc5156e5900efaffab4dcd88062ba98 (patch) | |
tree | 6d05fe950081e83e0d20daae1db4340e0997d19f | |
parent | 18cd1f0c30c8a6bd5c25a4a5942d199afaf0cf6f (diff) | |
download | mate-panel-17a0277ecbc5156e5900efaffab4dcd88062ba98.tar.bz2 mate-panel-17a0277ecbc5156e5900efaffab4dcd88062ba98.tar.xz |
Gtk3.18/3.20-move background handling toplevel
panel.c
-rw-r--r-- | mate-panel/panel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-panel/panel.c b/mate-panel/panel.c index 2b4c5859..206b6c82 100644 --- a/mate-panel/panel.c +++ b/mate-panel/panel.c @@ -159,7 +159,12 @@ back_change (AppletInfo *info, switch (info->type) { case PANEL_OBJECT_APPLET: mate_panel_applet_frame_change_background ( - MATE_PANEL_APPLET_FRAME (info->widget), panel->background.type); + +#if GTK_CHECK_VERSION (3, 18, 0) + MATE_PANEL_APPLET_FRAME (info->widget), panel->toplevel->background.type); +#else + MATE_PANEL_APPLET_FRAME (info->widget), panel->background.type); +#endif break; case PANEL_OBJECT_MENU_BAR: panel_menu_bar_change_background (PANEL_MENU_BAR (info->widget)); |