Using system monospace font affects context menus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mousepad (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
1) Xubuntu 20.04.3 LTS
2) mousepad (0.4.2-1)
3) The "Use system monospace font" preference should only affect the text being typed
4) It also changes the font for context menus
Screenshot is attached.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: mousepad 0.4.2-1
ProcVersionSign
Uname: Linux 5.11.0-40-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Mon Nov 15 12:39:20 2021
InstallationDate: Installed on 2021-05-17 (182 days ago)
InstallationMedia: Xubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
SourcePackage: mousepad
UpgradeStatus: No upgrade log present (probably fresh install)
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: /gitlab. xfce.org/ apps/mousepad/ -/blob/ master/ mousepad/ mousepad- window. c#L3487
https:/