Commit Graph

22691 Commits

Author SHA1 Message Date
John Ralls
12680ebb58 gnucash-item-edit.c: Small whitespace fixup. 2020-05-26 12:27:20 -07:00
John Ralls
a873cae90e Place the cursor after the preedit.
Connect to the GtkEntry's preedit-changed signal and stash the preedit
length.

Uses the PangoLayout's text instead of the GtkEntry's because the former
includes the current preedit string and the latter does not. Add the
preedit length to the cursor position so that the cursor is drawn to the
right (left in RTL languages) of the preedit.
2020-05-26 12:27:20 -07:00
John Ralls
fde6be6e01 Fix binreloc compile error with gcc. 2020-05-25 08:01:47 -07:00
Mike Alexander
159ceb6490 Don't call gnc_path_get_localedir vefore binreloc is initialized. 2020-05-25 03:31:20 -04:00
Mike Alexander
b1ffe2246a CLean up the binreloc code a bit. It is won't work pervectly, but it's better.
Make it do something plausible in a non0QUartz Mac build and make it handle
running GnuCash from a symlink.
2020-05-25 03:30:59 -04:00
John Ralls
c12ae077f7 Exclude mock files from translation. 2020-05-24 13:45:32 -07:00
John Ralls
947b9ea7aa Make static gnucash_sheet_cursor_get, used only internally. 2020-05-24 13:37:26 -07:00
John Ralls
77a8f71da2 Delete unused function gnucashsh_sheet_get_text_cursor_position. 2020-05-24 13:34:30 -07:00
John Ralls
608e700a24 Merge Bob Fewell's 'gnc-edit-changes' into master. 2020-05-24 11:22:43 -07:00
Christopher Lam
3036b72657 [dashboard] enable Dashboard report properly
8adac3c3 didn't enable dashboard report because of trailing "" in menu
path. proper fix.
2020-05-23 15:23:26 +08:00
Christopher Lam
d8aecf9695 [new-aging] speed up split->owner
several speed ups

1. split->owner will now cache results, bypassing
gncOwnerGetOwnerFromLot and gncInvoiceGetInvoiceFromLot for repeated
calls to the same split.

2. previously each call to split->owner would allocate a new
gncOwner. now a new gncOwner is only allocated during a cache
miss. the list of gncOwners is maintained and is purged when
split->owner is called with #f. There is no need to maintain a tofree
list of gncOwners anymore.

3. instead of slow gncOwnerReturnGUID to test equality, use gncOwnerEqual
2020-05-23 10:14:11 +08:00
Robert Fewell
fafb3ef3a8 Drop gnucash-scrolled-window.c in POTFILES.in as it has
been removed.
2020-05-22 23:16:43 +01:00
Robert Fewell
5f3ff8b652 Remove extra vbox in gnc_item_edit.c
The button is no longer required to be placed in an extra vortical box
as the required Gtk+ version is 3.22.30
2020-05-22 23:16:43 +01:00
Robert Fewell
22cd3d7296 Change the way the sheet popup treeview height is obtained.
Instead of using the sheet row height as the basis of obtaining the
popup height use the treeview cellrenderer height instead. This has the
advantage that any CSS font change applied to the treeview will be used
to get the correct height.
2020-05-22 23:16:37 +01:00
Robert Fewell
4da11b10e5 Move setting up of the sheet popup size-allocate callback
As the popup_item is cell dependant, the popup size-allocate check
callback needs to be setup when entering a cell and removed when
leaving so move this to the gnc_item_edit_set_popup function.
2020-05-22 18:22:39 +01:00
Robert Fewell
b7d31878e8 Error for g_signal_handler_disconnect in trace file
When item_edit is destroyed it tries to remove a signal handler based
on the saved id for the size-allocate signal for popups. If there have
been no popup used this id value is 0 so to prevent this error check
for id number greater than 0 before being used.
2020-05-22 18:22:39 +01:00
Robert Fewell
1502951801 Fix combocell when using action field
When using type-ahead, it clears the tmp_store in gnc_combo_cell_enter
so clearing the action list. Change this to only clear the tmp_store
when using quickfill or type-ahead.
2020-05-22 18:22:32 +01:00
John Ralls
f2a13ecac7 Merge Christian Gruber's 'test_import_backend' into master. 2020-05-21 12:39:57 -07:00
John Ralls
027d1f2751 Recalculate type-ahead search when deleting. 2020-05-20 16:56:10 -07:00
John Ralls
f4b0b36a3a gnc_combo_cell: Remove the vertical scrollbar if the list store is small.
A GtkScrolledWindow in automatic mode reserves at least enough space for
its vertical scrollbar even if it's empty. This causes the combo to be
at least two rows tall even when there's only one item, which is ugly.
Worse, it caused check_popup_height_is_true to fail resulting in an
infinite loop because it's predicated on there being a size error that
can be fixed by calling gnc_item_edit_update, which will cause a redraw
and call check_popup_height_is_true again.
2020-05-20 16:56:07 -07:00
John Ralls
53e48ab6fa Get rid of GncScrolledWindow.
It's just a pointless rename, no added value at all.
2020-05-20 16:54:40 -07:00
John Ralls
700e2dc5ac gnc_item_list_num_entries: Count the GtkListStore in use. 2020-05-19 15:38:58 -07:00
John Ralls
09a57e9bc0 Connect to the popup's size-allocate signal only once. 2020-05-19 15:26:39 -07:00
John Ralls
26fe8e7800 Use correct type of 0 for char* return value. 2020-05-19 09:53:22 -07:00
Robert Fewell
6ee485441f Bug 797754 - Account Register scrolling stops working
In an account register, scrolling stops working when the mouse pointer
re-enters the scrollbar after leaving it. This was caused by a fix for
the scrollbar not being updated in earlier versions of Gtk+. Having
removed this earlier fix and tried on Windows 10 and two flavours of
Linux with the current version of Gtk+ the earlier problem is not
evident so this commit removes that fix.
2020-05-19 11:19:13 +01:00
Robert Fewell
5640de09df Reselect the transaction rows in import-main-matcher
Once the transfer account is selected and control returned to the
Generic main matcher window the transaction rows will now be unselected.
This commit reselects the appropriate rows.
2020-05-19 10:32:11 +01:00
John Ralls
279a632b40 Bug 797760 - Broken register split activity...
cannot delete splits, unable to tab complete account name.

The final piece, commits the currently selected item in the PopBox
when tabbing out of a register combocell in type-ahead mode.
2020-05-18 14:14:08 -07:00
John Ralls
07325f796c combocell_gnome: Prevent starting off in type-ahead mode on entry
By ensuring that the list_store is set to the default and tmp_list
is empty.
2020-05-18 12:44:39 -07:00
John Ralls
9b028a7f58 combocell_gnome: Block signals for all list deletes.
Otherwise gnc_combo_cell_modify_verify is called once for every deleted
line in the gtk_list_store.
2020-05-18 12:44:39 -07:00
John Ralls
2d6953e9f4 combocell-gnome: Process deletes and inserts before performing matching. 2020-05-18 12:44:39 -07:00
Geert Janssens
2ef1dc4393 Drop unrelated source file from POTFILES.in
This is from another work in progress branch. Shouldn't have been added to master yet.
2020-05-18 19:53:31 +02:00
Geert Janssens
01333faec4 add-price-quotes doesn't use modules, so don't load them 2020-05-18 16:23:43 +02:00
Geert Janssens
9df81fa7ab Fix crash in case filter is less than 4 parameters
This apparently is not an issue on maint, but on master it results in a crash.
2020-05-18 11:46:13 +02:00
John Ralls
3e44af3c78 Ensure gnc_item_list's temp_store is NULL when list store is in use.
So that gnc_item_list_using_temp gives the right answer.
2020-05-17 16:51:30 -07:00
John Ralls
b5ebb24539 Remove redundant use of gtk_accelerator_get_default_mod_mask().
It just returns GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK.
2020-05-17 16:51:29 -07:00
John Ralls
9d17b3fc28 Initialize the bounds variables in gnucash_sheet_insert_cb.
So that bogus values aren't saved if gnc_table_modify_update doesn't touch them.
2020-05-17 16:51:29 -07:00
John Ralls
4479e44363 Fix delete ignores selection in register cells.
Don't clear the selection before passing the event to the entry's
keypress handler. Instead set the sheet selection from the entry
when the handler returns.
2020-05-17 16:51:29 -07:00
John Ralls
0aeb4b54ae Remove actions on the control, shift, and alt keys.
Those keypresses are now blocked along with all other naked modifiers.
2020-05-17 16:51:29 -07:00
Robert Fewell
31825be43f Change the Options Checkbox
Change the Options GtkCheckBox to use its own built-in label and remove
the label in the first column. The GtkCheckBox will still be placed in
the second column and aligned with the other widgets.
2020-05-17 16:10:36 +01:00
Christopher Lam
5b597dfea4 [html-chart] add z-index:999 to anchor
otherwise it is not always visible
2020-05-16 23:19:09 +08:00
Christopher Lam
0f56bed0d9 [receipt.eguile] simplify
1. taxtables? was a hack to disable tax display; this is now obsolete
since bug 573645 was fixed with 8221aada. the equivalent
taxinvoice.eguile.scm hack was removed with 0eb2c2b3 but never removed
in receipt.eguile.scm

2. break out date<? comparator

3. use lispy for-each instead of pythonic for

3. compact code
2020-05-16 23:19:09 +08:00
Christopher Lam
9116fece7d [taxinvoice] remove dead code, simplify
* customer-only filter for invoice option never been in use.
2020-05-16 23:19:09 +08:00
Christopher Lam
c69153fce1 [taxinvoice.eguile] simplify
1. break out date<? comparator

2. the (if (not (null? opt-invoice)) ...) section is always run
because display-report is only called when opt-invoice isn't null

3. use lispy for-each instead of pythonic for loops
2020-05-16 23:19:09 +08:00
John Ralls
a81f155408 Fix abort in qof_log_check.
Apparently g_logv doesn't like recursive calls from its log handler.
2020-05-15 12:52:18 -07:00
John Ralls
8283263459 Restore AQBanking to operation.
And remove some dead code that had been #if-0ed since it was written.
2020-05-14 17:12:04 -07:00
Christopher Lam
09a8bee5c0 Merge branch 'speedup-aging' #638 2020-05-14 20:30:08 +08:00
Christopher Lam
8ea9e41190 [register] display $0.00 for zero-value splits 2020-05-14 20:30:05 +08:00
Christopher Lam
ecf429a49a Merge branch 'master-796932' 2020-05-14 19:38:55 +08:00
Christopher Lam
bbde69ffcd [register] price shown in transaction currency rather than account's parent currency
error in commit 710b559cc4

xaccSplitGetSharePrice is priced in the transaction
currency. gnc-account-get-currency-or-parent would only output the
correct price currency if the chart of accounts was set up properly.

also: for Dr/Cr display, small modification to ensure a "$0.00" is
rendered when the split value is neither positive nor negative.
2020-05-14 19:37:54 +08:00
Robert Fewell
86dc6dcb96 Remove some spaces and tabs from dialog-options.c 2020-05-14 12:13:08 +01:00