зеркало из https://github.com/mozilla/pjs.git
Added the proper initialization for the DeviceContext and the toolkit
This commit is contained in:
Родитель
c458f7275f
Коммит
527f852ced
|
@ -70,6 +70,9 @@ void nsCheckButton::Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
|
||||
|
|
|
@ -330,6 +330,9 @@ void nsComboBox::Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
/*mWidget = ::XtVaCreateManagedWidget("",
|
||||
|
|
|
@ -71,6 +71,9 @@ void nsFileWidget:: Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
mWidget = XmCreateFileSelectionDialog(parentWidget, "filesb", NULL, 0);
|
||||
|
|
|
@ -315,6 +315,9 @@ void nsListBox::Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
unsigned char selectionPolicy;
|
||||
|
|
|
@ -69,6 +69,9 @@ void nsRadioButton::Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
mWidget = ::XmCreateRadioBox(parentWidget, "radio", nsnull, 0);
|
||||
|
|
|
@ -65,6 +65,9 @@ void nsTextAreaWidget::Create(nsIWidget *aParent,
|
|||
parentWidget = (Widget) aInitData ;
|
||||
}
|
||||
|
||||
InitToolkit(aToolkit, aParent);
|
||||
InitDeviceContext(aContext, parentWidget);
|
||||
|
||||
if (DBG) fprintf(stderr, "Parent 0x%x\n", parentWidget);
|
||||
|
||||
mWidget = ::XtVaCreateManagedWidget("button",
|
||||
|
|
Загрузка…
Ссылка в новой задаче