[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#416543: [newt] Last letter of the title is cut

Tags: patch

On Thu, Mar 29, 2007 at 05:13:28AM +0200, Frans Pop wrote:
> This is probably the same issue as in #382278. Not sure why it still does 
> not do the calculation correctly in this case. It could be that "#define 
> TITLE_PADDING 8" is still too low, but it would be nice to know why.

Tried to increase it to "10" with the patch below and title looks ok
(see attached screenshot showing trunk vs patched cdebconf)
Will hopefully try to understand how sizes are computed early next week.


Index: src/modules/frontend/newt/newt.c
--- src/modules/frontend/newt/newt.c    (revision 46053)
+++ src/modules/frontend/newt/newt.c    (working copy)
@@ -122,7 +122,7 @@
 /*  Padding of title width, allows for leading "[!!] " before title
  *  and the two vertical bars that limit the border.
-#define TITLE_PADDING 8
+#define TITLE_PADDING 10

 /* gettext would be much nicer :-( */
 static const char *

Attachment: 416543-cmp.png
Description: PNG image

Attachment: signature.asc
Description: Digital signature

Reply to: