diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-29 16:30:15 -0500 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-29 16:30:15 -0500 |
commit | 870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc (patch) | |
tree | 3a35bd47199456ceb9731d6bce4b25384b2e74ba /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse | |
parent | 4953e90353cf03b7e9778bd8ad03e777e563314d (diff) | |
download | eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.tar.gz eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.tar.xz eclipse.platform.swt-870787fef214f5a7a4ed7ed77aab11c3ab3a4ecc.zip |
Bug 391627 - Scroll bar selection changed event will only be fired once when hold down mouse key on top area of vertical scroll bar on Mac cocoa if checked Use smooth scrolling
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
3 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras index 640b813dbb..7693e5ae17 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras @@ -1135,6 +1135,11 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="setInteger:forKey:" swt_gen="true"> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method class_method="true" selector="standardUserDefaults" swt_gen="true"> <retval swt_gen="true"></retval> </method> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSUserDefaults.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSUserDefaults.java index 4eb2d64218..e518eb6508 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSUserDefaults.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSUserDefaults.java @@ -29,6 +29,10 @@ public id objectForKey(NSString defaultName) { return result != 0 ? new id(result) : null; } +public void setInteger(long /*int*/ value, NSString defaultName) { + OS.objc_msgSend(this.id, OS.sel_setInteger_forKey_, value, defaultName != null ? defaultName.id : 0); +} + public static NSUserDefaults standardUserDefaults() { long /*int*/ result = OS.objc_msgSend(OS.class_NSUserDefaults, OS.sel_standardUserDefaults); return result != 0 ? new NSUserDefaults(result) : null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index ff179d434c..05ae8350a4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -1931,6 +1931,7 @@ public static final long /*int*/ sel_setImageScaling_ = sel_registerName("setIma public static final long /*int*/ sel_setIncrement_ = sel_registerName("setIncrement:"); public static final long /*int*/ sel_setIndeterminate_ = sel_registerName("setIndeterminate:"); public static final long /*int*/ sel_setIndicatorImage_inTableColumn_ = sel_registerName("setIndicatorImage:inTableColumn:"); +public static final long /*int*/ sel_setInteger_forKey_ = sel_registerName("setInteger:forKey:"); public static final long /*int*/ sel_setIntercellSpacing_ = sel_registerName("setIntercellSpacing:"); public static final long /*int*/ sel_setJavaEnabled_ = sel_registerName("setJavaEnabled:"); public static final long /*int*/ sel_setJavaScriptEnabled_ = sel_registerName("setJavaScriptEnabled:"); |