Issues with diacritics in GtkEntry

I’m using Gtk 4.20.1, which is the version that Ubuntu ships with in its 25.10 release, and I’ve just noticed that GtkEntry objects can’t read letters with diacritics from the keyboard (for example, when trying to type: â á ä à, it comes out: a a a a). I’ve confirmed this with Gtk Demo.

I don’t know if this is fixed in the latest stable version 4.20.2 or if it’s a change in orientation and/or requires additional configuration.

Does anyone know anything about this?

Hi,

Only with gtk4 apps, or with gtk3 too?

Do you type these by first pressing the diacritic ^ then the letter a?
If yes, then make sure in Settings > Keyboard that your input source supports dead keys.

In gtk3 applications, it works fine, it handles dead keys and writes diacritics as expected. The issue occurs with applications on gtk4 (4.20.1).

The only way to see letters with diacritics is by copying and pasting text, previously written for example, from the graphical console or a text editor like pluma.

Sounds like an IBus issue then.
Have you some ibus packages installed? do you see some ibus processes running?

From a gtk4 app, press CtrlShiftI to start the inspector, in “Global” > “Information” check which “Input Method” is used.

There is a change in Gtk 4.20 that, on Wayland, it no longer use the simple IM method fallback for dead keys / compose key sequences. For Gnome Shell you need to install ibus to handle diacritics in Gtk 4 apps.

The gnome-shell package on Ubuntu 25.10 recommends to install ibus. It may not be installed by default, I don’t know how that works on Ubuntu.

1 Like

I have 4 ibus packages installed, but a ps -ef | grep ibus, does not give any related processes running.

The inspector shows me that I have Wayland as the Input method

Thanks for the information. After installing Ibus everything worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.