Another implementation attempt: http://primates.ximian.com/~jpr/screenshots/button-bar-1.png http://primates.ximian.com/~jpr/screenshots/button-bar-2.png http://primates.ximian.com/~jpr/screenshots/button-bar-3.png
Basically it takes the maximum button width of all the buttons and if it has only enough space for one across then it does that, other wise it fits a minimum of two in with even numbers of rows where possible, if not possibly you get shot 2 where the odd button is at the bottom. Finally you get shot 3 where all the buttons fit in one row. If there were 4 buttons it would go rows of 1, 2, 4 buttons wide. If there were 6 buttons it go rows of 1, 2, 3, 6 buttons wide. -JP -- JP Rosevear <[EMAIL PROTECTED]> Ximian, Inc. _______________________________________________ evolution-hackers maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution-hackers
