The input menu added with gtk_im_multicontext_append_menuitems() mostly provides redundant (e.g. the system defaults) or useless options (e.g. "None" or "Simple" which basically seems to mean the keyboard mapping straight keys, and I don't see why anyone would want this if one set a system-wide input system). Worse it can provide unstable options (e.g. "Wayland" which crashes GIMP when I tried it on my X11 desktop! It crashes on _gtk_immodule_wayland_init which is probably normal as we are not on a Wayland client). Anyway gtk_im_multicontext_append_menuitems() is deprecated since GTK+3.10, as well as the "gtk-show-input-method-menu" property which we read from GTK+ settings (and is FALSE anyway nowadays by default, so we usually never show this submenu) to determine if we should show this additional text tool submenu or not. Furthermore there is just no reason not to leave the defaults system input method engine does its job (which works well as far as I can see, at the very least on my GNU/Linux X11 desktop and on Wayland also, last I tested).
25 lines
873 B
XML
25 lines
873 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
|
|
|
|
<ui>
|
|
<popup action="text-tool-popup">
|
|
<menuitem action="text-tool-cut" />
|
|
<menuitem action="text-tool-copy" />
|
|
<menuitem action="text-tool-paste" />
|
|
<menuitem action="text-tool-delete" />
|
|
<separator />
|
|
<menuitem action="text-tool-load" />
|
|
<menuitem action="text-tool-clear" />
|
|
<separator />
|
|
<menuitem action="text-tool-text-to-path" />
|
|
<menuitem action="text-tool-text-along-path" />
|
|
<separator />
|
|
<menuitem action="text-tool-direction-ltr" />
|
|
<menuitem action="text-tool-direction-rtl" />
|
|
<menuitem action="text-tool-direction-ttb-rtl" />
|
|
<menuitem action="text-tool-direction-ttb-rtl-upright" />
|
|
<menuitem action="text-tool-direction-ttb-ltr" />
|
|
<menuitem action="text-tool-direction-ttb-ltr-upright" />
|
|
</popup>
|
|
</ui>
|