fix width for a menuentry, added too much space
akir akir
2 files changed,
5 insertions(+),
2 deletions(-)
M
src/FbTk/MenuItem.cc
→
src/FbTk/MenuItem.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ int normal = theme.frameFont().textWidth(label().c_str(), label().size()) + 2*(theme.bevelWidth() + height(theme));
if (m_icon.get() == 0) return normal; else - return normal + 2 * (theme.bevelWidth() + height(theme)); + return normal + height(theme); }