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 135018 Details for
Bug 262974
[SWT_AWT][Browser] On Linux, Browser dialogs are not modal
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]
hacks
browser_dialogs.patch (text/plain), 1.73 KB, created by
Silenio Quarti
on 2009-05-08 16:18:26 EDT
(
hide
)
Description:
hacks
Filename:
MIME Type:
Creator:
Silenio Quarti
Created:
2009-05-08 16:18:26 EDT
Size:
1.73 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java,v >retrieving revision 1.44 >diff -u -r1.44 MessageBox.java >--- Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java 13 Mar 2009 16:39:21 -0000 1.44 >+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java 8 May 2009 20:11:54 -0000 >@@ -138,7 +138,25 @@ > if ((style & (SWT.ICON_ERROR)) != 0) messageType = OS.GTK_MESSAGE_ERROR; > > byte [] buffer = Converter.wcsToMbcs (null, fixPercent (message), true); >+ > handle = OS.gtk_message_dialog_new(parentHandle, dialogFlags, messageType, 0, buffer); >+ if (true) { >+ int /*long*/ xDisplay = OS.GDK_DISPLAY(); >+ int /*long*/ xParentWindow = OS.gdk_x11_drawable_get_xid(OS.GTK_WIDGET_WINDOW(OS.gtk_widget_get_toplevel(parent.handle))); >+ int /*long*/ [] unused = new int /*long*/ [1]; >+ int /*long*/ [] parentWindow = new int /*long*/ [1]; >+ int /*long*/ [] rooWindow = new int /*long*/ [1]; >+ int count = 0; >+ do { >+ OS.XQueryTree(xDisplay, xParentWindow, rooWindow, parentWindow, unused, unused); >+ if (parentWindow [0] == rooWindow [0]) break; >+ xParentWindow = parentWindow [0]; >+ } while (xParentWindow != 0); >+ OS.gtk_widget_realize(handle); >+ int /*long*/ xWindow = OS.gdk_x11_drawable_get_xid(OS.GTK_WIDGET_WINDOW(OS.gtk_widget_get_toplevel(handle))); >+ OS.XSetTransientForHint(OS.GDK_DISPLAY(), xWindow, xParentWindow); >+ } >+ > if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES); > if (parentHandle != 0) { > int /*long*/ pixbufs = OS.gtk_window_get_icon_list (parentHandle);
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 262974
:
124212
| 135018