apps/graphic/twm4nx: Fix junk varialbe that was shadowing variable of the same name in the base CNxWidget class. Resolves all start up crash issues. Now I need to figure out why the host VNC client drops the connection.

This commit is contained in:
Gregory Nutt 2019-05-02 16:40:10 -06:00
parent 2fff83d60d
commit 445e0eef79
5 changed files with 8 additions and 8 deletions

View File

@ -43,4 +43,8 @@ STATUS
3. For TWM-like behavior, a window frame and toolbar should be highlighted
when the window has focus.
4. A right click on the toolbar should bring up a window-specific menu.
2019-05-02: Some testing progress. The system comes up, connects to and
initializes the VNC window. For some reason, the VNC client breaks the
connection. The server is no longer connected so Twm4Nx constipates and
and eventually hangs.

View File

@ -174,7 +174,7 @@ bool CIconWidget::initialize(FAR NXWidgets::IBitmap *ibitmap,
FAR NXWidgets::CImage *image =
new NXWidgets::CImage(m_widgetControl, iconImagePos.x,
iconImagePos.y, iconImageSize.w, iconImageSize.h,
ibitmap, m_style);
ibitmap, &m_style);
if (image == (FAR NXWidgets::CImage *)0)
{
twmerr("ERROR: Failed to create image\n");
@ -199,7 +199,8 @@ bool CIconWidget::initialize(FAR NXWidgets::IBitmap *ibitmap,
FAR NXWidgets::CLabel *label =
new NXWidgets::CLabel(m_widgetControl, iconLabelPos.x, iconLabelPos.y,
iconLabelSize.w, iconLabelSize.h, title);
iconLabelSize.w, iconLabelSize.h, title,
&m_style);
if (label == (FAR NXWidgets::CLabel *)0)
{
twmerr("ERROR: Failed to create icon label\n");

View File

@ -173,7 +173,7 @@ void CWindowEvent::sendInputEvent(void)
void CWindowEvent::handleRedrawEvent(FAR const nxgl_rect_s *nxRect,
bool more)
{
twminfo("backgound=%s\n", m_isBackground ? "YES" : "NO");
twminfo("background=%s\n", m_isBackground ? "YES" : "NO");
// At present, only the background window will get redraw events

View File

@ -92,10 +92,6 @@
#include "graphics/nxwidgets/cwidgeteventhandlerlist.hxx"
#include "graphics/nxwidgets/tnxarray.hxx"
/****************************************************************************
* Pre-Processor Definitions
****************************************************************************/
/****************************************************************************
* Implementation Classes
****************************************************************************/

View File

@ -89,7 +89,6 @@ namespace Twm4Nx
FAR CTwm4Nx *m_twm4nx; /**< Cached Twm4Nx session */
mqd_t m_eventq; /**< NxWidget event message queue */
FAR NXWidgets::CWidgetControl *m_widgetControl; /**< The controlling widget */
FAR NXWidgets::CWidgetStyle *m_style; /**< Widget style */
// Dragging