linuxmint / linuxmint/nemo

List view: rename editor font doesn't match cell text when zoomed

Open Beginner friendly
#3,821 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Description

Distribution

Mint 22.3

Package version

6.7.4

Frequency

Always

Bug description

Problem: When you rename a file in list view, the editing field opens with the default font size instead of the size of the cell text. For any view zoom above "Standard" the entry looks out of place / too small.

Steps to reproduce

Steps to reproduce: Set list view to a higher zoom level (e.g. "Large"), press F2 on a file.

Expected: The rename editor uses the same font size as the displayed cell text.

Expected behavior

During editing fonts size is the same

Additional information

Possible fix: In cell_renderer_editing_started_cb (src/nemo-list-view.c), read the renderer's scale property and apply pango_attr_scale_new to the entry's attributes. Own fix is working for me.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/nemo-list-view.c at cell_renderer_editing_started_cb and inspect how the list cell's renderer scale is available. Reproduce with list view zoom set to Large and F2 on a file, then verify the rename editor text matches the displayed cell text at higher zoom levels.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.