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 195021 Details for
Bug 344463
Bidi 3.7 : RTL support for tooltip (for Linux).
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.
A patch for changing the direction of the Tooltip according to its parent
patch.txt (text/plain), 1.91 KB, created by
Moshe WAJNBERG
on 2011-05-08 10:53:23 EDT
(
hide
)
Description:
A patch for changing the direction of the Tooltip according to its parent
Filename:
MIME Type:
Creator:
Moshe WAJNBERG
Created:
2011-05-08 10:53:23 EDT
Size:
1.91 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >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.306 >diff -u -r1.306 Shell.java >--- Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 7 Apr 2011 14:46:52 -0000 1.306 >+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 8 May 2011 14:51:55 -0000 >@@ -1936,6 +1936,18 @@ > this.modified = modified; > } > >+void setOrientation (boolean create) { >+ super.setOrientation (create); >+ if (!create) { >+ for (int i=0; i<toolTips.length; i++) { >+ ToolTip tooltip = toolTips[i]; >+ if (tooltip != null && tooltip.getText () != null) { >+ tooltip.setText (tooltip.getText ()); >+ } >+ } >+ } >+} >+ > /** > * Sets the shape of the shell to the region specified > * by the argument. When the argument is null, the >Index: Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java,v >retrieving revision 1.27 >diff -u -r1.27 ToolTip.java >--- Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java 31 May 2010 16:44:11 -0000 1.27 >+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java 8 May 2011 14:51:55 -0000 >@@ -747,6 +747,9 @@ > byte [] buffer = Converter.wcsToMbcs (null, text, true); > layoutText = OS.gtk_widget_create_pango_layout (handle, buffer); > if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) { >+ int dir = (parent.style & SWT.RIGHT_TO_LEFT) != 0 ? OS.PANGO_DIRECTION_RTL : OS.PANGO_DIRECTION_LTR; >+ int context = OS.pango_layout_get_context (layoutText); >+ OS.pango_context_set_base_dir (context, dir); > OS.pango_layout_set_auto_dir (layoutText, false); > } > int /*long*/ boldAttr = OS.pango_attr_weight_new (OS.PANGO_WEIGHT_BOLD);
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 Raw
Actions:
View
Attachments on
bug 344463
:
194492
| 195021