Commit Graph

10802 Commits

Author SHA1 Message Date
Derek Atkins
1449cd97d1 convert GncEmployee to GObject initialzation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15819 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:38 +00:00
Derek Atkins
292cf31279 convert GncCustomer to gobject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15818 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:31 +00:00
Derek Atkins
d93599d8f4 convert billterm to gobject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15817 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:26 +00:00
Derek Atkins
4271ca4e17 convert gncAddress to GObject initialization
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15816 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:18 +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
Derek Atkins
49c4d834e3 convert price/pricedb objects to GObject initialization
rename gnc_price_{get,set}_type() to _typestr() so it doesn't
conflict with the GType gnc_price_get_type() API.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15812 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:38 +00:00
Derek Atkins
01d677ddb8 convert gnc-lot object to GObject initialization
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15811 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:28 +00:00
Derek Atkins
c7d7b9621f Convert gnc_commodity objects to GObject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15810 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:18 +00:00
Derek Atkins
d71de524f8 Convert GncBudget object to GObject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15809 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:09 +00:00
Derek Atkins
e097404f0b Convert the Transaction object to GObject Initialization
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15808 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:58 +00:00
Derek Atkins
cb8f58790c Convert Split objects to GObject intiialization
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15807 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:50 +00:00
Derek Atkins
39d9258d19 Convert SX-book (SchedXactions) to GObject initialization.
Note that this object is never freed here, so it's a potential memory leak.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15806 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:42 +00:00
Derek Atkins
f1e6425dce Convert SchedXaction to GObject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15805 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:32 +00:00
Derek Atkins
1cbf8b848c Convert FreqSpec to GObject initialization.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15804 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:11 +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
Derek Atkins
1bea96024f Convert Account object to GObject
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15785 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 22:58:42 +00:00
Derek Atkins
5bee77e41a get libqof to build using GObject
- migrate QofBook to GObject
- move around some typedef to get libqof to build again


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15784 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 22:30:58 +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
Derek Atkins
44103fd12f convert QofInstance to using GObject
note that this breaks the build of this branch, and that the
build will remain broken until each of the objects is converted
over to basic GObject support.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15781 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 13:51:35 +00:00
Derek Atkins
ab60ce2a6a Um, the branch should live under branches. oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15779 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 02:15:45 +00:00
Derek Atkins
06ec94e59c Hey, look! QofInstance has a GObject.
Granted, it's not used, yet.  But it's there.
Also add some helpful macros for instances.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/gobject-engine-dev-warlord@15778 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-03 02:14:13 +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
Derek Atkins
12461c5b30 * Merge QofEntity into QofInstance
- QofEntity -> QofInstance
  - qof_entity -> qof_instance
  - QOF_ENTITY -> QOF_INSTANCE
* remove references to instance.entity
* keep qof_entity_init() and qof_entity_release() for now


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/gobject-engine-dev-warlord@15773 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-01 22:18:50 +00:00
Derek Atkins
4e43ae10f3 Preparation for QofEntity -> QofInstance:
- Convert (QofEntity*)x to QOF_ENTITY(x)
- Move qof_entity_init() and friends into qof_instance and rename
- Move QofEntity contents into QofInstance
(note:  this doesn't compile)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/gobject-engine-dev-warlord@15772 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-01 22:18:30 +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
Derek Atkins
4b0ca6b26c Build a branch for my own gobject dev work
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/gobject-engine-dev-warlord@15762 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-30 14:02:33 +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