Mercurial > hg > xemacs-beta
diff src/toolbar.c @ 284:558f606b08ae r21-0b40
Import from CVS: tag r21-0b40
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:34:13 +0200 |
parents | c42ec1d1cded |
children | 57709be46d1b |
line wrap: on
line diff
--- a/src/toolbar.c Mon Aug 13 10:33:19 2007 +0200 +++ b/src/toolbar.c Mon Aug 13 10:34:13 2007 +0200 @@ -777,6 +777,16 @@ || !EQ (FRAME_TOOLBAR_BUFFER (f, LEFT_TOOLBAR), buffer) || !EQ (FRAME_TOOLBAR_BUFFER (f, RIGHT_TOOLBAR), buffer))) { + int width, height; + + /* We're not officially "in redisplay", so we still have a chance + to re-layout toolbars and windows. This is done here, because + toolbar is the only thing which currently might necesseritate + this layout, as it is outside any windows */ + pixel_to_char_size (f, FRAME_PIXWIDTH (f), FRAME_PIXHEIGHT (f), + &width, &height); + change_frame_size (f, height, width, 0); + /* Removed the check for the minibuffer here. We handle this more correctly now by consistently using FRAME_LAST_NONMINIBUF_WINDOW instead of FRAME_SELECTED_WINDOW