Using system monospace font affects context menus

Bug #1950947 reported by Akbarkhon Variskhanov
10
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 5.11.0-40.44~20.04.2-generic 5.11.22
Uname: Linux 5.11.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
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)

Revision history for this message
Akbarkhon Variskhanov (kbar) wrote :
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

Revision history for this message
Sean Davis (bluesabre) wrote :

This no longer seems to be an issue with Mousepad 0.5.10 in Xubuntu 22.10. Please reopen if you see otherwise.

Changed in mousepad (Ubuntu):
status: New → Fix Released
Revision history for this message
Akbarkhon Variskhanov (kbar) wrote :

I can confirm that it is indeed fixed with Mousepad 0.5.10.

Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.