Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 384897

Summary: "Input Methods" item added to default menu
Product: [Eclipse Project] Platform Reporter: Sathya <ragesathya>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, ragesathya
Version: 4.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sathya CLA 2012-07-12 03:14:15 EDT
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

There was a previous bug related to this issue.

Bug 284777 was created to see that user gtk setting would be checked before adding "Input Methods" item to context menus.

This works fine if a custom context menu is set to the widget.

But, the patch provided in the above mentioned Bug id will not work if we do not set any menu to the widget and only use the default context menu provided by SWT .

For a widget (say text widget), by default the menu = null. Now, when the showMenu method of Control.java class uses the below condition,

if (menu != null && !menu.isDisposed ()) {
...
 menu.createIMMenu (hooksKeys ? imHandle() : 0);
...
}

Here, the menu.createIMMenu( ) method which contains the patch is never called.
There by all default context menus will be having the "Input Methods" item in the context menu irrespective of the gtk settings.

Reproducible: Always

Steps to Reproduce:
1.Create a text widget
2.Do not set any custom menu to it
3.Right click on the created widget
Comment 1 Eric Williams CLA 2018-04-09 14:50:31 EDT
I can't reproduce this issue. Please re-open this ticket if the issue persists on GTK3.22 using a 4.8 I-build.