summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2001-11-12 19:30:24 +0000
committerSteve Northover <steve>2001-11-12 19:30:24 +0000
commit893e08083a3a4983e56c9ca08144681568140061 (patch)
tree21b198dcbe5c7b55ea4d3a1b1e46a6286e5f4674 /bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
parentfad88b21def05a66d8895a006e5b263380117619 (diff)
downloadeclipse.platform.swt-893e08083a3a4983e56c9ca08144681568140061.tar.gz
eclipse.platform.swt-893e08083a3a4983e56c9ca08144681568140061.tar.xz
eclipse.platform.swt-893e08083a3a4983e56c9ca08144681568140061.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
index 20d64172ca..55fd89ed2f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
@@ -268,17 +268,17 @@ public Control [] getTabList () {
Control [] children = _getChildren ();
for (int i=0; i<children.length; i++) {
Control control = children [i];
- int [] argList = new int [] {OS.XmNnavigationType, 0};
- OS.XtGetValues (control.handle, argList, argList.length / 2);
- if (argList [1] == OS.XmEXCLUSIVE_TAB_GROUP) count++;
+ int type = control.getNavigationType ();
+ if (type == OS.XmEXCLUSIVE_TAB_GROUP) {
+ count++;
+ }
}
int index = 0;
Control [] tabList = new Control [count];
for (int i=0; i<children.length; i++) {
Control control = children [i];
- int [] argList = new int [] {OS.XmNnavigationType, 0};
- OS.XtGetValues (control.handle, argList, argList.length / 2);
- if (argList [1] == OS.XmEXCLUSIVE_TAB_GROUP) {
+ int type = control.getNavigationType ();
+ if (type == OS.XmEXCLUSIVE_TAB_GROUP) {
tabList [index++] = control;
}
}
@@ -573,13 +573,11 @@ public void setTabList (Control [] tabList) {
}
if (control != this) error (SWT.ERROR_INVALID_PARENT);
}
- int [] argList1 = new int [] {OS.XmNnavigationType, OS.XmTAB_GROUP};
Control [] children = _getChildren ();
for (int i=0; i<children.length; i++) {
Control control = children [i];
- OS.XtSetValues (control.handle, argList1, argList1.length / 2);
+ control.setNavigationType (OS.XmTAB_GROUP);
}
- int [] argList2 = new int [] {OS.XmNnavigationType, OS.XmEXCLUSIVE_TAB_GROUP};
for (int i=0; i<tabList.length; i++) {
/*
* Set the XmNnavigationType twice, once to clear the
@@ -588,8 +586,8 @@ public void setTabList (Control [] tabList) {
* same and does not change the tab order.
*/
Control control = tabList [i];
- OS.XtSetValues (control.handle, argList1, argList1.length / 2);
- OS.XtSetValues (control.handle, argList2, argList2.length / 2);
+ control.setNavigationType (OS.XmTAB_GROUP);
+ control.setNavigationType (OS.XmEXCLUSIVE_TAB_GROUP);
}
}
int traversalCode () {