Commit Graph
6 Commits
Author SHA1 Message Date
galbarm 25e0f2144a Account tree: make numeric columns selectable via GncCellRendererLabel
Implements the approach suggested by jralls in PR #2222: instead of a
context menu action, introduce GncCellRendererLabel - a
GtkCellRendererText subclass that returns a read-only, selectable
GtkEntry when a cell is activated.

All numeric columns (Balance, Total, Cleared, Reconciled, Present,
Future Minimum, and their report/period variants) are affected because
they all go through gnc_tree_view_add_numeric_column.

Usage:
- Click once to select the row (unchanged behaviour)
- Click again on a numeric cell to activate it; the value appears in a
  read-only entry field with the text pre-selected
- Ctrl+C copies the value to the clipboard; Escape or clicking away
  dismisses the field without modifying the model
- Unicode bidi control characters (added by GnuCash for RTL display)
  are stripped before showing the value so the copied text is clean
2026-05-23 13:14:55 +01:00
Sherlock 0e041af555 Bug 799652 - Invoice price decimal places
Bug 799652 - Invoice price decimal places

The "+ 2 places" should only be applied when force decimal is enabled.

Update gnc-ui-util.cpp

Update test-balsheet-pnl.scm

Update test-ifrs-cost-basis.scm

Update test-invoice.scm
2025-09-03 08:41:42 -07:00
John Ralls 5941167132 Bug 797766 - Automatic decimal point doesn't work properly with...
zeros when entering stocks.

Preserve the decimal point when printing numbers with no decimal
places to stop the auto-decimal code from triggering when exiting the
field.
2025-06-10 15:04:43 -07:00
Christopher Lam 8c94132f13 Bug 799268 - Cannot write a check over $1000
this is caused by d52d226e5b which caused log_val, pow_val, this_part
to be kept as float instead of the original algorithm which required
casting to int.
2024-04-10 13:30:59 +08:00
John Ralls c87d480b0d Move gnc_list_formatter from gnc-date to gnc-ui-util.
It has nothing at all to do with dates.
2024-01-06 18:16:31 -08:00
John Ralls d52d226e5b Convert gnc-ui-util to C++. 2024-01-06 18:08:39 -08:00