Commit Graph

10579 Commits

Author SHA1 Message Date
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
David Hampton
72b00e4027 Add preferences support for printing the date format immediately below
the date (GtkPrint only), and for setting the font used by the check
printing code (GnomePrint and GtkPrint).  The fonts actually used by
GnomePrint seem very limited compared to those used by GtkPrint, but
the font size specification always seems to be honored.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15753 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 18:17:38 +00:00
David Hampton
2c8690b5d8 Add preferences support for a GtkFontButton widget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15752 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 18:14:08 +00:00
Andreas Köhler
191e977fd1 Use gtk_print_operation_set_{use_full_page,unit} for reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15751 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 15:30:27 +00:00
Andreas Köhler
62ff5bab3c Install.sh: Some package updates, including GtkHTML 3.14.0.
Update glib, cairo, pango, gtk+ and gtkhtml.  Drop libgnomeprintui, but
keep libgnomeprint because goffice depends on it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15750 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 15:28:37 +00:00
Andreas Köhler
e3a47d52b1 On Windows, convert filename parameter for xml parser to system codepage.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15749 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-23 19:40:32 +00:00
Andreas Köhler
656306e6dc Add support for (de)compressing in a thread instead of fork.
Use GThreading system when available, but depend on it on Windows.
Gzipped data files are still loaded by libxml2.  On write, again create
a pipe p and a thread t that gzwrites bytes read from p to a given file.
After the other thread has finished writing to p, it waits for t to
return to avoid loss of data.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15748 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-23 19:38:08 +00:00
Andreas Köhler
12392fcb44 Install.sh: Do not mix pexports and ".." as noted by Nathan Buchanan.
pexports somestimes crashes in a new MSYS shell if a path, like the one
to a header file, contains "..".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15747 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-22 08:15:01 +00:00
Andreas Köhler
bed4c1a087 Patch from James Radley to allow override of the dotfile location.
Read environment variable GNC_DOT_DIR and, if available, use this
instead of `g_get_home_dir`/.gnucash.  This allows one develop without
impacting an existing stable installation, excepting shared GConf
keys.  Setting HOME does not help, because g_get_home_dir prefers
passwd entries.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15746 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-21 22:50:12 +00:00
Andreas Köhler
4e579ba100 Remove almost unused configure output variables.
GNUCASH_{APP_UTILS,GNOME_UTILS,REGISTER_CORE}_{CFLAGS,LIBS} and
GNC_FALSE have been completely unused.  GNUCASH_ENGINE_{,BASE}_* could be
moved to its only user engine/Makefile.am.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15745 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-21 20:03:47 +00:00
Andreas Köhler
bc2969282c In install.sh test for htmlhelp, try to build DLL.
The HTML Help Workshop includes htmlhelp.lib, but we cannot use it for
creating DLLs---it is a static thingy.  So test with -shared in
install.sh.  It would be nice to have a similar test improvement in
configure.in.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15744 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-21 09:46:01 +00:00
Andreas Köhler
58f17fe7a4 Fix a typo in gnome-utils/Makefile.am, garbling _SOURCES.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15743 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 23:42:49 +00:00
Andreas Köhler
b3edcbca48 Do not check for and link against gnomeprint if gtkhtml uses gtkprint.
If GtkHTML uses GtkPrint, reports and checks will use it, so GnomePrint
is not needed.  Also, remove some spurious GNOME_PRINT_{CFLAGS,LIBS} from
Makefile.am files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15742 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 16:37:46 +00:00
David Hampton
f506b75fdb If the specified check format guid can't be found then select the
first check format in the list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15741 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 05:19:20 +00:00
David Hampton
13f1be4d84 Use a single key for check position names instead of a series of
manufactured key names, one key per name.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15739 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 01:08:12 +00:00
Andreas Köhler
f04508e009 Do not printf %s if the param is NULL.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15738 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-18 22:45:08 +00:00
Joshua Sled
ed9661c8b4 Add list of "interesting" libraries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15737 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-18 19:39:15 +00:00
Joshua Sled
d2139a28b8 Update "starting gnucash from the build tree info."
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15736 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-18 19:39:12 +00:00
Andreas Köhler
3fe6b64c95 Uncouple print settings for reports and checks again.
Remove gnc_{save,restore}_print_settings, revert part of r15733.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15735 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-18 17:58:58 +00:00