From 937f1f6298de3ff4954348f25ba298f03e63de78 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 16 Apr 2009 17:16:08 +0100 Subject: [PATCH] Arrange PanelBar widgets with varying heights --- src/gui/widgets/panel-bar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/panel-bar.cpp b/src/gui/widgets/panel-bar.cpp index 755de87ea..d6bd33575 100644 --- a/src/gui/widgets/panel-bar.cpp +++ b/src/gui/widgets/panel-bar.cpp @@ -169,9 +169,10 @@ PanelBar::on_size_allocate(Gtk::Allocation& allocation) const Requisition child_requisition = widget->size_request(); const Gtk::Allocation child_allocation( - offset, 0, + offset, + (allocation.get_height() - child_requisition.height) / 2, min(child_requisition.width, allocation.get_width() - offset), - allocation.get_height()); + child_requisition.height); offset += child_requisition.width;