Comment 2 for bug 1950947

Revision history for this message
Akbarkhon Variskhanov (kbar) wrote :

The reason is that GtkMenu being spawned inside GtkTextView and the font-family property is inherited from parent. If GtkTextView is set to monospace font, GtkMenu also inherits that font.

The fix would be setting its value to initial. The following Gtk code does that:

.context-menu {
 font: initial;
}

I don't know how it would be done programmatically, though:
https://gitlab.xfce.org/apps/mousepad/-/blob/master/mousepad/mousepad-window.c#L3487