From ed442cd57492e1b6559a8c03e63e758b40b3935c Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 1 Nov 2018 11:05:41 -0700 Subject: [PATCH] Draw background before drawing toolbar bitmap. The background may not have been painted for us. --- src/gtk/toolbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/toolbar.cpp b/src/gtk/toolbar.cpp index b700308c87..d6d399b4a7 100644 --- a/src/gtk/toolbar.cpp +++ b/src/gtk/toolbar.cpp @@ -195,6 +195,8 @@ image_expose_event(GtkWidget* widget, GdkEventExpose*, wxToolBarTool* tool) int x = (alloc.width - bitmap.GetScaledWidth()) / 2; int y = (alloc.height - bitmap.GetScaledHeight()) / 2; #ifdef __WXGTK3__ + gtk_render_background(gtk_widget_get_style_context(widget), + cr, alloc.x, alloc.y, alloc.width, alloc.height); bitmap.Draw(cr, x, y); #else x += alloc.x;