projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix gcc 3.3 warning about possibly uninitialized (but in reality initialized) variabl...
[wxWidgets.git]
/
src
/
motif
/
radiobox.cpp
diff --git
a/src/motif/radiobox.cpp
b/src/motif/radiobox.cpp
index fa0f0dbfca0793253d5333d5829194ae2e463eb2..00303033a4a737a972f876b8fd75cd703c4ff07e 100644
(file)
--- a/
src/motif/radiobox.cpp
+++ b/
src/motif/radiobox.cpp
@@
-14,10
+14,6
@@
#if wxUSE_RADIOBOX
#if wxUSE_RADIOBOX
-#ifdef __VMS
-#define XtDisplay XTDISPLAY
-#endif
-
#include "wx/radiobox.h"
#ifndef WX_PRECOMP
#include "wx/radiobox.h"
#ifndef WX_PRECOMP
@@
-51,6
+47,7
@@
void wxRadioBox::Init()
m_selectedButton = -1;
m_noItems = 0;
m_noRowsOrCols = 0;
m_selectedButton = -1;
m_noItems = 0;
m_noRowsOrCols = 0;
+ m_labelWidget = (WXWidget) 0;
}
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
}
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
@@
-61,6
+58,7
@@
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
{
if( !CreateControl( parent, id, pos, size, style, val, name ) )
return false;
{
if( !CreateControl( parent, id, pos, size, style, val, name ) )
return false;
+ PreCreation();
m_noItems = (unsigned int)n;
m_noRowsOrCols = majorDim;
m_noItems = (unsigned int)n;
m_noRowsOrCols = majorDim;
@@
-123,7
+121,7
@@
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
wxString str(GetLabelText(choices[i]));
m_radioButtonLabels.push_back(str);
Widget radioItem = XtVaCreateManagedWidget (
wxString str(GetLabelText(choices[i]));
m_radioButtonLabels.push_back(str);
Widget radioItem = XtVaCreateManagedWidget (
-
wxConstCast(str.mb_str(), char
),
+
str.mb_str(
),
#if wxUSE_GADGETS
xmToggleButtonGadgetClass, radioBoxWidget,
#else
#if wxUSE_GADGETS
xmToggleButtonGadgetClass, radioBoxWidget,
#else
@@
-137,18
+135,15
@@
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
(XtPointer) this);
}
(XtPointer) this);
}
- ChangeFont(false);
-
SetSelection (0);
XtRealizeWidget((Widget)m_mainWidget);
XtManageChild (radioBoxWidget);
XtManageChild ((Widget)m_mainWidget);
SetSelection (0);
XtRealizeWidget((Widget)m_mainWidget);
XtManageChild (radioBoxWidget);
XtManageChild ((Widget)m_mainWidget);
+ PostCreation();
AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
- ChangeBackgroundColour();
-
return true;
}
return true;
}