From b12ce691bc59fcb491e63f43040804d471d712c9 Mon Sep 17 00:00:00 2001 From: akir Date: Wed, 1 Sep 2004 07:53:45 +0000 Subject: fix width for a menuentry, added too much space --- ChangeLog | 3 +++ src/FbTk/MenuItem.cc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8016c63..d16114c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.10: +*04/09/01: + * Fix width of a menuentry (Mathias) + FbTk/MenuItem.cc *04/08/31: * Fixed restart issue with system tray (Henrik) SystemTray.cc diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc index ee1db93..137facd 100644 --- a/src/FbTk/MenuItem.cc +++ b/src/FbTk/MenuItem.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: MenuItem.cc,v 1.6 2004/08/29 08:33:13 rathnor Exp $ +// $Id: MenuItem.cc,v 1.7 2004/09/01 07:53:45 akir Exp $ #include "MenuItem.hh" #include "Command.hh" @@ -247,7 +247,7 @@ unsigned int MenuItem::width(const MenuTheme &theme) const { if (m_icon.get() == 0) return normal; else - return normal + 2 * (theme.bevelWidth() + height(theme)); + return normal + height(theme); } -- cgit v0.11.2