Commit Graph

10597 Commits

Author SHA1 Message Date
Joshua Sled
df48c26f49 s/printf/g_logging/
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15843 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 20:03:50 +00:00
Joshua Sled
459a053a30 Bug#348364: (Emulating price-cell,) we need to ensure the denominator of the amount is in the SCU of the account's commodity (so gnc-ui-util.c:is_decimal_fraction() on the remainder denom for fractional values will be a "decimal").
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15842 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 20:00:04 +00:00
Joshua Sled
cdcc26bbc9 Re-layout SX editor dialog: move 3 major components into notebook tabs. Bug#339003.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15841 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 17:24:11 +00:00
David Hampton
65c3b8d3c5 Conditionally remove some more deprecated functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15840 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 04:44:07 +00:00
Joshua Sled
aa94af8c94 Free memory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15839 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:49:19 +00:00
David Hampton
df0cfeddc2 The function name xaccSplitDateOrder is misleading, so rename it to
xaccSplitOrder.  Add a new xaccSplitOrderDateOnly function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15838 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:31:28 +00:00
Joshua Sled
897633f01b Combine two copies of "dow abbrev[iation]" code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15837 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:22:29 +00:00
Joshua Sled
f7206b1fd1 Mem handling fixme.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15836 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:47:37 +00:00
Joshua Sled
49640205d3 Rename GncSxInstances->list to instance_list, which at least emacs doesn't hilight as a (potential)keyword.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15835 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:20:27 +00:00
David Hampton
d2f7b84a4e Remove some deprecated functions. Bump version numbers were GnuCash
sets the "disable deprecated" flags.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15834 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:15:15 +00:00
Joshua Sled
18f0e755ec Normalize memory handling of GncDenseCal marked-element "info" string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15833 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:54:52 +00:00
Joshua Sled
bda70ee100 detail
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15832 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:51:42 +00:00
Joshua Sled
18703684f1 remove a level of (legacy) indirection around some calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15831 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:50:50 +00:00
Joshua Sled
f64b83c37f decided against
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15830 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:50:13 +00:00
David Hampton
392cd816a3 Balance ENTER/LEAVE calls on some functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15829 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:19:08 +00:00
Andreas Köhler
b7cc4b2e1e Fix a %s-NULL-printf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15828 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 19:49:52 +00:00
Joshua Sled
7832f0f069 update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15815 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 01:33:55 +00:00
Joshua Sled
2b8ef2b7d6 Base the value of the "week_starts_monday" dense-cal parameter on an implementation detail of GTK. :(
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15814 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 01:33:13 +00:00
Joshua Sled
9abdbc10dc GncDenseCal supports Monday being the start of the week.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15813 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:43:09 +00:00
Joshua Sled
b0d66bf40d better GncDenseCal minimum-size requesting
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15803 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 23:05:57 +00:00
Joshua Sled
855beadbd2 Save/restore gnc dense cal number-of-months view in SX List page.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15802 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:22:12 +00:00
Joshua Sled
4a35a0eac8 unused variable removal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15801 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:21:38 +00:00
Joshua Sled
06ee9fcf88 Correctly set the GncDenseCal view combo box when set from code.
Better view label/combo-box widget layout and alignment.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15800 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:07:23 +00:00
Andreas Köhler
bde4fe7108 Remove check for sys/wait.h because waitpid is not in use anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15799 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 21:49:02 +00:00
Andreas Köhler
74c517548c Depend on an available GLib thread implementation. Remove fallback to fork for gzip.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15798 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 21:48:57 +00:00
Andreas Köhler
e111fd32b0 Use qof_strftime instead of strftime in the C source code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15796 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 18:48:48 +00:00
Andreas Köhler
095c71a5f1 Improve printing of dates and times with non-UTF-8 locales and on Windows.
* qof_time_format_from_utf8 converts an strftime format specification
  from UTF-8 to the locale encoding
* qof_format_time calls strftime repeatedly with growing allocated
  buffers until the result fits into one, or return NULL
* qof_formatted_time_to_utf8 converts the result back to UTF-8
* qof_strftime takes similar arguments to strftime, but in UTF-8
* the conversion functions on Windows are implemented in qof-win32.c to
  allow them to use windows.h, as they need wcstombs and mbstowcs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15795 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 18:48:42 +00:00
Andreas Köhler
91eb3d4262 In new user dialog, run HOOK_BOOK_OPENED with non-NULL session parameter.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15794 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 17:58:23 +00:00
Andreas Köhler
508ebfecb6 Fix state file issues on Windows.
Handle two NULL parameters to %s in printfs.  In
gnc_update_state_file_keys, also use \r for splitting the contents into
lines.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15793 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 17:04:22 +00:00
Andreas Köhler
b2bd1a6411 Minor cleanup and doc string in gnc-help-utils.[ch].
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15792 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 15:41:48 +00:00
David Hampton
8c332ae13b Implement idea from Mike Alexander (in #346063) to key lot scrubbing
off the environment variable GNC_AUTO_SCRUB_LOTS instead of commenting
it out of the code.  This make it easier for developers to test/users
to try lot scrubbing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15791 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:58:07 +00:00
David Hampton
09f8e28a83 Patch from Klee Dienes <klee@mit.edu> (bugzilla #420550) to
re-implement gnc_lot_get_earliest_split and gnc_lot_get_latest_split
using xaccSplitDateOrder.  This greatly simplifies the functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15790 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:36:16 +00:00
David Hampton
d4a33b2311 Print a different warning messages if unsaved changes have existed for
longer than an hour or a day.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15789 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:16:57 +00:00
David Hampton
b4ca2231db Fix window corruption problems when adding prices to the price
database. (#376298)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15788 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 03:57:04 +00:00
David Hampton
3a612f804f Play nicer with recent releases of glib that have tightened what's
considered a valid key in a key/value file. This change will cause
gnucash to rewrite any opened state file into a new version where all
key names fit the new glib requirements.

This code was originally committed to trunk as #15458 on 1/28/07, and
then backed out with #15461 on 1/29/07.  Backward compatibility
support for this code was committed to the 2.0 branch in #15460 and
was released as part of 2.0.5.  Now that 2.0.5 has now been out for
six weeks, this commit puts the original changes back into trunk.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15787 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 03:40:14 +00:00
Joshua Sled
c1ae1cc0f3 (Checkpoint; start to) support changing the number-of-months in a GncDenseCal.
Change GncDenseCal to be a composite widget using GtkDrawArea, rather than
being a "native" widget; much more straightforward implementation.  Update
some GTK API usage for deprecation/modernity.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15786 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 02:22:28 +00:00
Andreas Köhler
26296ca2a0 Remove viewport/hbox from account scrolls in transfer dialog. Fixes #425917.
The scrolled windows for "transfer to" and "transfer from" now take the
treeviews directly and do not pack them into viewports, letting them
actually scroll the scrolled window.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15782 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 17:21:20 +00:00
Joshua Sled
cd72398736 Bug#343795: Be explicit about number of months so auto-decimal-point doesn't bite us. Patch from Jerry Quinn <mailto:jlquinn@optonline.net>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15777 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 00:55:56 +00:00
Joshua Sled
5dbb52a8e4 When an SX is updated, synchronize added/removed variables with new/existing instances.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15776 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 00:19:04 +00:00
Joshua Sled
cafd290508 Unused variable removal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15775 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-02 22:11:52 +00:00
David Hampton
cdc906c887 Allow the user to specify the maximum width of the page labels in the
main window (#338161).  Also add a tooltip showing the account full
name to the page labels in the main window (#343239).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15774 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-02 03:42:21 +00:00
Andreas Köhler
dfcb77f0c9 On Windows, go back to libgnomeprint. Partly revert r15750/61.
GtkPrint/GtkHTML as combination is not yet stable enough to use it by
default.  It seems however to be the way to go, so all necessary changes
are only commented out.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15771 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-01 13:23:54 +00:00
Andreas Köhler
57b1a827ae Remove libgnomeprintui from dist.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15761 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-28 08:59:36 +00:00
David Hampton
e6e85a13ec Allow the base gconf path to be specified at run time, either via an
environment variable or via a command line option.  Based on a patch
from James Radley.  Implements #328762.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15760 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 03:06:09 +00:00
David Hampton
5edeb504e2 Add an option to change the tab closing behavior. The two choices are
to move to the tab immediately to the left, or to move to the most
recently viewed tab.  Implements #346314.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15759 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 01:55:38 +00:00
David Hampton
9ca73549ce Add a preference for printing "***" immediately before and after all
text fields on checks.  Implements enhancement request #420224.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15758 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 01:10:09 +00:00
Andreas Köhler
b86e5fa33c Use gncOwnerGetOwnerFromLot.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15757 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-26 21:28:48 +00:00
David Hampton
498c193a63 Record a couple of user suggestions for things to do with gnucash's
gtkrc file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15756 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-26 03:02:55 +00:00
David Hampton
eab98d53f8 Don't crash if an example account file has no root account. Also
filter the file names (*xea) when reading accounts directories.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15755 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-26 02:58:23 +00:00
Andreas Köhler
1f8c3dc9f6 Use TXN-TYPE-{INVOICE,PAYMENT} in customer report. Observed by Nigel Titley.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15754 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-25 23:05:47 +00:00