summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9bb50fd)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35535
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <sys/time.h>
#include <unistd.h>
#include <sys/time.h>
#include <unistd.h>
-static XtInputId inputId;
static int idleFds[2] = { -1, -1 };
class wxIdlePipeModule : public wxModule
static int idleFds[2] = { -1, -1 };
class wxIdlePipeModule : public wxModule
return false;
// install input handler for wxWakeUpIdle
return false;
// install input handler for wxWakeUpIdle
- inputId = XtAppAddInput( (XtAppContext) wxTheApp->GetAppContext(),
- idleFds[0],
- (XtPointer)XtInputReadMask,
- wxInputCallback,
- NULL );
+ XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
+ idleFds[0],
+ (XtPointer)XtInputReadMask,
+ wxInputCallback,
+ NULL);
//copied from mac/radiobut.cpp (from here till "return true;")
m_cycle = this ;
//copied from mac/radiobut.cpp (from here till "return true;")
m_cycle = this ;
if (HasFlag(wxRB_GROUP))
{
AddInCycle( NULL ) ;
if (HasFlag(wxRB_GROUP))
{
AddInCycle( NULL ) ;
wxRadioButton* wxRadioButton::AddInCycle(wxRadioButton *cycle)
{
wxRadioButton* wxRadioButton::AddInCycle(wxRadioButton *cycle)
{
- wxRadioButton* next;
- wxRadioButton* current;
-
if (cycle == NULL)
{
m_cycle = this;
if (cycle == NULL)
{
m_cycle = this;
- current = cycle;
- while ((next = current->m_cycle) != cycle)
+ wxRadioButton* current = cycle;
+ while ( current->m_cycle != cycle )
current = current->m_cycle;
m_cycle = cycle;
current->m_cycle = this;
current = current->m_cycle;
m_cycle = cycle;
current->m_cycle = this;
}
wxRadioButton* wxRadioButton::ClearSelections()
}
wxRadioButton* wxRadioButton::ClearSelections()
int buttonHeight = 0, buttonWidth = 0;
int buttonHeight = 0, buttonWidth = 0;
- int currentSpacing = 0;
-
Widget button;
Pixmap pixmap, insensPixmap;
wxBitmap bmp, insensBmp;
Widget button;
Pixmap pixmap, insensPixmap;
wxBitmap bmp, insensBmp;
XtAddEventHandler (button, EnterWindowMask | LeaveWindowMask,
False, wxToolButtonPopupCallback, (XtPointer) this);
XtAddEventHandler (button, EnterWindowMask | LeaveWindowMask,
False, wxToolButtonPopupCallback, (XtPointer) this);