827
834
// get a proper GTK+ toolbar style by using one of the children, i.e. a DockToolbar, a subclass of GtkToolbar
828
835
var styleProvider = (Widget)bars[0];
829
836
var shadowType = (ShadowType) styleProvider.StyleGetProperty ("shadow-type");
830
Style.PaintBox (styleProvider.Style, evnt.Window, State, shadowType, evnt.Area, styleProvider, "toolbar",
831
Allocation.X, Allocation.Y, Allocation.Width, Allocation.Height);
838
//render each row separately, so the theme treats each as a row, and they match the individual toolbars' themed painting
839
//FIXME: Mac only seems to display the last-painted row, even though we make paint calls for all of them
841
for (int i = bars.Count - 1; i >= 0; i--) {
842
var bar = (DockToolbar) bars[i];
843
if (bar.DockRow == row) {
845
Style.PaintBox (bar.Style, evnt.Window, State, shadowType, evnt.Area, bar, "toolbar",
846
Allocation.X, bar.Allocation.Y, Allocation.Width, bar.Allocation.Height);
832
850
foreach (DockToolbar bar in bars)
833
851
this.PropagateExpose (bar, evnt);