Package: cbm
Version: 0.1-5
Severity: normal
Tags: patch
Attached is a patch which fixes this. There were two mistakes: one was
that the wrong curss function ws used (mvwin() instead of mvderwin() )
and the other one was that the position/size of these windows wasn't set
before they were first displayed.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (99,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.36-rc5-00049-gc79bd89
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cbm depends on:
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-17 GCC support library
ii libncurses5 5.7+20100313-3 shared libraries for terminal hand
ii libstdc++6 4.4.4-17 The GNU Standard C++ Library v3
cbm recommends no packages.
cbm suggests no packages.
-- no debconf information
diff -ur cbm-0.1.orig//src/cbm.cpp cbm-0.1//src/cbm.cpp
--- cbm-0.1.orig//src/cbm.cpp 2006-02-15 12:28:51.000000000 +0000
+++ cbm-0.1//src/cbm.cpp 2010-09-28 15:02:18.006973660 +0100
@@ -156,13 +156,20 @@
interfaceTable.setColumns(4);
interfaceTable.setActiveStyle(A_BOLD);
interfaceTable.setActiveRow(1);
+ // Position the interface table
+ interfaceTable.setPosition(2, 2);
+ interfaceTable.setSize(screen.getWidth() - 4,
+ 8); // TODO
// Create the detail table
VerticalTable detailTable(screen);
detailTable.setColumns(2);
detailTable.setRows(2);
detailTable.setActiveRow(-1);
-
+ // Position the detail table
+ detailTable.setPosition(2, 12); // TODO
+ detailTable.setSize(screen.getWidth() - 4, 10); // TODO
+
// Populate the detail table
detailTable.setText (0, 0, "Interface");
detailTable.setStyle(0, 0, COLOR_PAIR(COLOR_HEADING) | A_BOLD);
diff -ur cbm-0.1.orig//src/widgets/Window.cpp cbm-0.1//src/widgets/Window.cpp
--- cbm-0.1.orig//src/widgets/Window.cpp 2006-01-13 15:39:55.000000000 +0000
+++ cbm-0.1//src/widgets/Window.cpp 2010-09-28 14:54:49.450890766 +0100
@@ -14,7 +14,7 @@
}
void Window::setPosition(unsigned x, unsigned y) {
- mvwin((WINDOW*) win_, y, x);
+ mvderwin((WINDOW*) win_, y, x);
}
void Window::setSize(unsigned width, unsigned height) {