From 527f852ced36556ae78ede5c83e0eea2376f3fda Mon Sep 17 00:00:00 2001 From: rods Date: Fri, 10 Jul 1998 17:22:58 +0000 Subject: [PATCH] Added the proper initialization for the DeviceContext and the toolkit --- widget/src/motif/nsCheckButton.cpp | 3 +++ widget/src/motif/nsComboBox.cpp | 3 +++ widget/src/motif/nsFileWidget.cpp | 3 +++ widget/src/motif/nsListBox.cpp | 3 +++ widget/src/motif/nsRadioButton.cpp | 3 +++ widget/src/motif/nsTextAreaWidget.cpp | 3 +++ 6 files changed, 18 insertions(+) diff --git a/widget/src/motif/nsCheckButton.cpp b/widget/src/motif/nsCheckButton.cpp index f708c05d7b7..7d345985ef0 100644 --- a/widget/src/motif/nsCheckButton.cpp +++ b/widget/src/motif/nsCheckButton.cpp @@ -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); diff --git a/widget/src/motif/nsComboBox.cpp b/widget/src/motif/nsComboBox.cpp index ba6f6bf577f..fa40160bd85 100644 --- a/widget/src/motif/nsComboBox.cpp +++ b/widget/src/motif/nsComboBox.cpp @@ -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("", diff --git a/widget/src/motif/nsFileWidget.cpp b/widget/src/motif/nsFileWidget.cpp index 6f161cd7ecd..0a120d69e8e 100644 --- a/widget/src/motif/nsFileWidget.cpp +++ b/widget/src/motif/nsFileWidget.cpp @@ -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); diff --git a/widget/src/motif/nsListBox.cpp b/widget/src/motif/nsListBox.cpp index 759ca8f48b0..a41e31df8d4 100644 --- a/widget/src/motif/nsListBox.cpp +++ b/widget/src/motif/nsListBox.cpp @@ -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; diff --git a/widget/src/motif/nsRadioButton.cpp b/widget/src/motif/nsRadioButton.cpp index 4742d37c665..a35744d8f3d 100644 --- a/widget/src/motif/nsRadioButton.cpp +++ b/widget/src/motif/nsRadioButton.cpp @@ -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); diff --git a/widget/src/motif/nsTextAreaWidget.cpp b/widget/src/motif/nsTextAreaWidget.cpp index 77bb8839bbb..49781b2b233 100644 --- a/widget/src/motif/nsTextAreaWidget.cpp +++ b/widget/src/motif/nsTextAreaWidget.cpp @@ -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",