Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 24952 Details for
Bug 104280
Support the 'toolbar' button on OS X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch against org.eclipse.swt
Bug104280-SWT.txt (text/plain), 5.10 KB, created by
Kim Horne
on 2005-07-18 17:16:51 EDT
(
hide
)
Description:
Patch against org.eclipse.swt
Filename:
MIME Type:
Creator:
Kim Horne
Created:
2005-07-18 17:16:51 EDT
Size:
5.10 KB
patch
obsolete
>Index: Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java,v >retrieving revision 1.100 >diff -u -r1.100 Shell.java >--- Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java 14 Jul 2005 17:33:50 -0000 1.100 >+++ Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java 18 Jul 2005 21:12:31 -0000 >@@ -103,7 +103,19 @@ > * @see SWT > */ > public class Shell extends Decorations { >- int shellHandle, windowGroup; >+ /** >+ * the handle to the OS shell resource >+ * (Warning: This field is platform dependent) >+ * <p> >+ * <b>IMPORTANT:</b> This field is <em>not</em> part of the SWT >+ * public API. It is marked public only so that it can be shared >+ * within the packages provided by SWT. It is not available on all >+ * platforms and should never be accessed from application code. >+ * </p> >+ */ >+ public int shellHandle; >+ >+ int windowGroup; > boolean resized, moved, drawing, reshape, update, activate, disposed, opened; > int invalRgn; > Control lastActive; >Index: Eclipse SWT PI/carbon/library/os.c >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c,v >retrieving revision 1.68 >diff -u -r1.68 os.c >--- Eclipse SWT PI/carbon/library/os.c 9 Jun 2005 21:25:56 -0000 1.68 >+++ Eclipse SWT PI/carbon/library/os.c 18 Jul 2005 21:12:36 -0000 >@@ -2435,6 +2435,18 @@ > } > #endif > >+#ifndef NO_ChangeWindowAttributes >+JNIEXPORT jint JNICALL OS_NATIVE(ChangeWindowAttributes) >+ (JNIEnv *env, jclass that, jint window, jint setAttributes, jint clearAttributes) >+{ >+ jint rc = 0; >+ OS_NATIVE_ENTER(env, that, ChangeWindowAttributes_FUNC); >+ rc = (jint) ChangeWindowAttributes((WindowRef)window, (WindowAttributes) setAttributes, (WindowAttributes) clearAttributes); >+ OS_NATIVE_EXIT(env, that, ChangeWindowAttributes_FUNC); >+ return rc; >+} >+#endif >+ > #ifndef NO_CPSEnableForegroundOperation > JNIEXPORT jint JNICALL OS_NATIVE(CPSEnableForegroundOperation) > (JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2, jint arg3, jint arg4) >Index: Eclipse SWT PI/carbon/library/os_stats.h >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h,v >retrieving revision 1.37 >diff -u -r1.37 os_stats.h >--- Eclipse SWT PI/carbon/library/os_stats.h 9 Jun 2005 21:25:56 -0000 1.37 >+++ Eclipse SWT PI/carbon/library/os_stats.h 18 Jul 2005 21:12:37 -0000 >@@ -212,6 +212,7 @@ > CGShadingCreateRadial_FUNC, > CGShadingRelease_FUNC, > CGWarpMouseCursorPosition_FUNC, >+ ChangeWindowAttributes_FUNC, > CPSEnableForegroundOperation_FUNC, > CPSSetProcessName_FUNC, > CalcMenuSize_FUNC, >Index: Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java,v >retrieving revision 1.178 >diff -u -r1.178 OS.java >--- Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java 9 Jun 2005 21:25:56 -0000 1.178 >+++ Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java 18 Jul 2005 21:12:38 -0000 >@@ -41,6 +41,7 @@ > public static final int inStructure = 15; > public static final int inZoomIn = 7; > public static final int inZoomOut = 8; >+ public static final int inToolbarButton = 13; > public static final int italic = 2; > public static final int k32ARGBPixelFormat = 0x00000020; > public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't'; >@@ -386,6 +387,7 @@ > public static final int kEventWindowHidden = 25; > public static final int kEventWindowHitTest = 1003; > public static final int kEventWindowShown = 24; >+ public static final int kEventWindowToolbarSwitchMode = 150; > public static final int kEventWindowUpdate = 1; > public static final int kFMIterationCompleted = -980; > public static final int kFloatingWindowClass = 5; >@@ -687,6 +689,7 @@ > public static final int kWindowResizableAttribute = (1 << 4); > public static final int kWindowStandardHandlerAttribute = (1 << 25); > public static final int kWindowStructureRgn = 32; >+ public static final int kWindowToolbarButtonAttribute = (1 << 6); > public static final int kWindowUpdateRgn= 34; > public static final int mouseDown = 1; > public static final int noErr = 0; >@@ -941,6 +944,7 @@ > public static final native int CGShadingCreateRadial (int colorspace, CGPoint start, float startRadius, CGPoint end, float endRadius, int function, boolean extendStart, boolean extendEnd); > public static final native void CGShadingRelease (int shading); > public static final native int CGWarpMouseCursorPosition (CGPoint newCursorPosition); >+public static final native int ChangeWindowAttributes(int windowHandle, int setAttributes, int clearAttributes); > public static final native int CPSEnableForegroundOperation(int[] psn, int arg2, int arg3, int arg4, int arg5); > public static final native int CPSSetProcessName(int[] psn, byte[] name); > public static final native int CallNextEventHandler(int nextHandler, int eventRefHandle);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104280
:
24950
| 24952 |
25124