Also, add a "(read-only)" suffix in the window title if we are read-only.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21565 57a11ea4-9604-0410-9ed3-97b8803252fd
This was because the "date" field was indeed be set with a different
time of day (noon vs. start of day), depending on the various code
places.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21562 57a11ea4-9604-0410-9ed3-97b8803252fd
This fixes the time-of-day mismatch between entering a new entry
(that was using timespecCanonicalDayTime, "noon") vs. duplicating
an invoice (that was using gnc_timet_get_today_start, "start of day").
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21561 57a11ea4-9604-0410-9ed3-97b8803252fd
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
In particular, glib doesn't offer a function for easily accessing
the "today" date as a GDate. What a pity. It's added now as gnc_g_date_new_today().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21559 57a11ea4-9604-0410-9ed3-97b8803252fd
No more, no less. This object isn't used in any other way in gnucash, so
we better get rid of the extra potential complexity here.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21548 57a11ea4-9604-0410-9ed3-97b8803252fd
Problem spotted and traced by Robert Fewell in bug #663057.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21543 57a11ea4-9604-0410-9ed3-97b8803252fd
Discovered in bug#663433 - the return value was cached in an int variable
instead of a gdouble one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21541 57a11ea4-9604-0410-9ed3-97b8803252fd
gnc_numeric_to_double() produces int32_t, which causes random digits at
the tail end of int64_t results, causing the comparison tests to fail.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21529 57a11ea4-9604-0410-9ed3-97b8803252fd
Subsequently, the QofBook pointer in QofSession can be changed from
a GList to a QofBook*.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21526 57a11ea4-9604-0410-9ed3-97b8803252fd
Recursed to the wrong function, which caused sub-accounts to not be sorted.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21524 57a11ea4-9604-0410-9ed3-97b8803252fd
For use from tests based on glib testing. Create a private structure to
compare to and register a handler which tests the event parameters
against the private structure and counts the number of valid hits.
Provides a test function for checking that the event handler has been
hit the requisite number of times.
Pass through, rather than testing, logs with a lower (i.e., less
important rather than lower-value) loglevel than the one the handler was
set up for. Test the log message rather than overwriting the pre-set one
with the actual message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21523 57a11ea4-9604-0410-9ed3-97b8803252fd
No more CamelCase in engine C++ wrappers, hopefully.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21509 57a11ea4-9604-0410-9ed3-97b8803252fd
Somehow Transaction.hpp erroneously appeared here in r19802.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21507 57a11ea4-9604-0410-9ed3-97b8803252fd
Changes:
- Use QT_NO_KEYWORDS because the identifier "signal" collides with some glibmm dependency
- Use Glib::RefPtr<> of gnucash objects everywhere.
- Use Glib::ustring and Glib::Date instead of qt types
The WeakPointer.hpp file is still used for gnc::Session, which is not
(yet) a GObject.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21506 57a11ea4-9604-0410-9ed3-97b8803252fd