Improve the TextEntry field #178

Merged
savanni merged 3 commits from fitnesstrax/text-entry-improvements into main 2024-01-31 14:04:08 +00:00
Owner

This consolidates TextEntry based on improvements that I noticed while working on time/distance workouts.

  • there are convenience functions that build TextEntry fields for all of my common data formatters
  • TextEntry now manages when to call the on_update function, so that clients don't have to deal with it. This reduces boilerplate code in the parser function that clients give to TextEntry.

Resolves #171

This consolidates TextEntry based on improvements that I noticed while working on time/distance workouts. - there are convenience functions that build TextEntry fields for all of my common data formatters - TextEntry now manages when to call the on_update function, so that clients don't have to deal with it. This reduces boilerplate code in the parser function that clients give to TextEntry. Resolves #171
savanni added 3 commits 2024-01-31 14:01:44 +00:00
6c68564a77 Create a function which safely initializes GTK once
This is only available in test code, and it allows GUI component tests to run without having to worry about double-initializing GTK
savanni merged commit 772188b470 into main 2024-01-31 14:04:08 +00:00
savanni deleted branch fitnesstrax/text-entry-improvements 2024-01-31 14:04:08 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: savanni/monorepo#178
No description provided.