Skip to content
Snippets Groups Projects

Give more choice for whitespace display

Merged Gaël Bonithon requested to merge Tamaranch/mousepad:display-whitespace-extended into master

Depends on !48 (merged).

By addressing #44 (closed), this MR extends whitespace display to what GtkSourceView 3.24 allows (so bumping its version in configure.ac.in):

  • four white space types: space, tab, newline, non-breaking space;
  • three white space locations: leading, trailing, between words.

To achieve this, I chose to use a GtkPopover in the preferences dialog, built from a GMenuModel whose actions lie in MousepadApplication (since these settings make sense at the application level). This is what it looks like:

Capture_d_écran_2020-10-22_19-25-05

The binding with GSettings is done also in MousepadApplication, while the view properties are bind to the application properties (one for the space type flags and one for the space location flags).

Edited by Gaël Bonithon

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading