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 154205 Details for
Bug 244274
SWT.NO_FOCUS on Linux (Gtk) is inconsistent with Windows
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 v01
Shell_NoFocus.txt (text/plain), 1.82 KB, created by
Praveen
on 2009-12-10 03:04:05 EST
(
hide
)
Description:
Patch v01
Filename:
MIME Type:
Creator:
Praveen
Created:
2009-12-10 03:04:05 EST
Size:
1.82 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java,v >retrieving revision 1.542 >diff -u -r1.542 OS.java >--- Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java 20 Nov 2009 22:22:09 -0000 1.542 >+++ Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java 10 Dec 2009 08:04:54 -0000 >@@ -13178,6 +13178,19 @@ > } > } > /** >+ * @param window cast=(GtkWindow *) >+ * @param setting cast=(gboolean) >+ */ >+public static final native void _gtk_window_set_focus_on_map(int /*long*/ window, boolean setting); >+public static final void gtk_window_set_focus_on_map(int /*long*/ window, boolean setting) { >+ lock.lock(); >+ try { >+ _gtk_window_set_focus_on_map(window, setting); >+ } finally { >+ lock.unlock(); >+ } >+} >+/** > * @method flags=dynamic > * @param window cast=(GtkWindow *) > * @param setting cast=(gboolean) >Index: Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java,v >retrieving revision 1.290 >diff -u -r1.290 Shell.java >--- Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 13 Nov 2009 20:45:28 -0000 1.290 >+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 10 Dec 2009 08:04:55 -0000 >@@ -687,6 +687,9 @@ > if (isCustomResize ()) { > OS.gtk_container_set_border_width (shellHandle, BORDER); > } >+ if ((style & SWT.NO_FOCUS) != 0) { >+ if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) OS.gtk_window_set_focus_on_map (shellHandle, false); >+ } > } else { > vboxHandle = OS.gtk_bin_get_child (shellHandle); > if (vboxHandle == 0) error (SWT.ERROR_NO_HANDLES);
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 244274
: 154205