0

I'm developing a RCP application at Centos7, and GTK version is gtk3-3.22.30-3.el7.x86_64.

but there is a sub menu "Input Methods" appeared in all content menu. SubMenu.png

How can I remove this sub menu.

4
  • You might be able to use the org.eclipse.ui.activities extension point to suppress the menu item.
    – greg-449
    May 24, 2019 at 6:20
  • Thank you for your comment, it's seems like a good way.
    – Preston
    May 24, 2019 at 8:24
  • But I don't know about the id of "Input Mthods" menu at all. so that I can't find the ID to disable,sad.
    – Preston
    May 24, 2019 at 8:27
  • You can use Eclipse Plug-in and Menu Spy to find out ids - see this answer
    – greg-449
    May 24, 2019 at 8:29

1 Answer 1

0

Finally, my colleague given me an answer.

There is a internal static String variable in org.eclipse.swt.widgets.Composite named NO_INPUT_METHOD, all we need to do is just set this val not be null by display.setData("org.eclipse.swt.internal.gtk.noInputMethod", true);, then everything is OK!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.