Commit Graph

18319 Commits

Author SHA1 Message Date
Robert Fewell
30f082d199 Files linked to dialog-account.glade 2017-06-18 11:02:05 +01:00
Robert Fewell
04cf3d93e2 Couple of corrections to previous commit. 2017-06-17 16:34:56 +01:00
Robert Fewell
05eb41fe8b Replace gtk_misc_set_alignment with own label alignment function
Replace gtk_misc_set_alignment after Gtk3+3.16 with gtk_label_set_xalign
 and yalign
2017-06-17 13:55:05 +01:00
Robert Fewell
d724128a3d Replace gtk_scrolled_window_add_with_viewport
Replace gtk_scrolled_window_add_with_viewport with gtk_container_add
2017-06-17 12:50:45 +01:00
Robert Fewell
08660a29ff Change dialog buttons from using GKT_STOCK_ labels
Remove GTK_STOCK_... from dialog buttons as it is depreciated and
replace with text labels.
2017-06-17 12:16:54 +01:00
Robert Fewell
ade9f71b9d Remove depreciated gtk_button_set_use_stock 2017-06-17 11:55:08 +01:00
John Ralls
b5b0f60396 Correctly store time64 0 in the SQL backend.
The SQL backend ignored time64 0 when saving dates. time64 is a perfectly
valid timestamp (1970-01-01 00:00:00) and should be stored.
2017-06-16 15:57:52 -07:00
John Ralls
5f8f9b9a84 Clamp time64 values passed to GDateTime functions to the valid range.
Fixes a bug reported on the mailing list wherein a date of 0000-00-00
in a MySql database would crash GnuCash. Such dates may come from a bad
conversion of 1970-01-01 or from a crash.
2017-06-16 15:31:49 -07:00
Robert Fewell
090968f1f2 Replace deprecated widgets in goffice 2017-06-16 16:51:37 +01:00
Robert Fewell
d29bb5b8cd Correct corrupted line in gnc-account-sel.h 2017-06-16 16:50:45 +01:00
Robert Fewell
976a137069 Change register Gtk horizontal and vertical widgets
Change Gtk horizontal and vertical widgets to there equivalent with
orientation
2017-06-16 12:40:35 +01:00
Robert Fewell
b3c5b1cb5d Change all Gtk horizontal and vertical widgets
Change Gtk horizontal and vertical widgets to there equivalent with
orientation
2017-06-16 12:40:17 +01:00
Robert Fewell
9cefa509c7 Change register GtkHbox widgets
Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
2017-06-16 12:10:54 +01:00
Robert Fewell
409e43715a Change all the GtkHbox widgets
Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
2017-06-16 12:10:36 +01:00
Robert Fewell
5c2a70bcab Change all the GtkVBox widgets
Change all GtkVBox widgets to GtkBox with orientation VERTICAL
2017-06-16 11:33:41 +01:00
Robert Fewell
faecd7ffeb Fix the tab label width update function to reflect changes 2017-06-16 10:58:16 +01:00
Robert Fewell
a985541f77 Replaced some deprecated widgets with the gtk3 equivalent 2017-06-15 19:47:02 +01:00
Robert Fewell
4de57ba982 Fix Tab Labels
The tab labels do not keep to the width specified in the preferences,
use set_width_chars instead of set_max_width_chars.
2017-06-15 19:46:17 +01:00
Robert Fewell
78f28887a6 Replace some deprecated widgets in the register. 2017-06-15 19:45:39 +01:00
Robert Fewell
0abc3e32a1 There were critical errors in trace file.
Test for item being part of container first.
2017-06-15 19:43:49 +01:00
Robert Fewell
7f7ec67feb Replace deprecated widgets for GncDenseCal with gtk3 equivalents 2017-06-15 19:42:28 +01:00
Robert Fewell
c7f3994fe3 Composite functions not required for GncDenseCal 2017-06-15 19:41:48 +01:00
Robert Fewell
a6fd7f85d3 Set the background of the GncDenseCal Widget
The background of the GncDenseCal widget is not able to be set from the
default style. Set it white but allow it to be themed with css.
2017-06-15 19:40:20 +01:00
Robert Fewell
64deacf1e1 With Gtk3 it uses css to do the theming so change the file to load 2017-06-15 19:38:53 +01:00
christopherlam
385ca0c324 Bug 776396 Further Fix
This commit will further improve the styling of the table element used for foreign 
currencies in any report with foreign currencies or stocks. Adds non-breaking space 
between foreign currency/stock and report currency.
2017-06-04 12:26:46 +08:00
John Ralls
881a39d2eb Bug 783095 - gnucash-2.6.16 segfaults on startup
Null tip_list after freeing it the first time to prevent double-free,
then don't iterate over it if contents is NULL. Don't even try to open
dialog if tip_count < 1. Protect from dereferencing a NULL tip_list in
gnc_new_tip_number.
2017-05-26 11:34:00 -07:00
Mike Evans
e43e30d039 Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.
Again.
2017-05-21 15:49:30 +01:00
Mike Evans
9591c52bf5 Revert "Change from deprecated gncEntrySetDate to gncEntrySetDateGDate."
Oops, more work required.

This reverts commit 78565f7939.
2017-05-21 15:38:51 +01:00
Mike Evans
78565f7939 Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.
Should gncEntrySetDateEntered() similarly be deprecated?
2017-05-21 15:23:25 +01:00
Mike Evans
3e9716626f Correct a typo. 2017-05-19 08:03:12 +01:00
Mike Evans
5df97ba2a5 Use correct column for entry date.
The date opened will be set to today if that column is blank.
2017-05-18 19:27:47 +01:00
Guy Taylor
34bab999a5 Fix coredump in Python when using "get_namespaces"
The Python API incorectly had GncCommodityTable.get_namespaces() defined
as a list of GncCommodityNamespace over the correct list of String. This
fixes the issue and adds a test for GncCommodityTable.get_namespaces()
and GncCommodityTable.get_namespaces_list().

Note: This is not a direct fix as I could not get SWIG to detect/convert
"GList *" to a "gchar *" to a Python str list.
2017-05-17 10:40:21 +02:00
Guy Taylor
3cd2a6554c Enable Python tests in Travis CI 2017-05-17 01:28:43 +01:00
Bert
178013bf9d Bug 776396 - Foreign currency reports, amounts are not aligned correctly
Bug 776396 - Foreign currency reports, amounts are not aligned correctly

This commit will improve the styling of the table element used
for foreign currencies in the Balance sheet report so they
end up aligned with the other currencies.
2017-05-13 15:46:07 +02:00
fell
efaeb99ff1 Add XSU to iso-4217-currencies
The future common currency of south america?
2017-05-06 23:47:11 +02:00
Geert Janssens
9087418f81 Drop ifdeffed out code block 2017-05-03 18:08:37 +02:00
Geert Janssens
c5ef629fdc Bug 781634 - Alert on missing account currency when opening account 2017-05-03 18:08:37 +02:00
Geert Janssens
e0af43d413 Properly handle import of reconcile state.
Gnucash exports this state localized it should expect a localized state on import.
2017-05-03 12:19:04 +02:00
Geert Janssens
3603ec1aa8 Document supported date formats in the saved csv settings 2017-05-03 09:44:36 +02:00
Geert Janssens
9af57849ba Use GncDate in csv importer
This removes all date specific functionality from the importer
2017-05-02 23:16:21 +02:00
Geert Janssens
7df29b572a Add copy constructor and assignment operator to GncDate 2017-05-02 23:09:36 +02:00
Geert Janssens
5070037314 Add comparison operators for GncDate
Note the operands are const GncDate& because the GncDate has no copy
constructor/assigment operator (any other definition would fail
when used with variables of type boost::optional<GncDate>)
2017-05-01 16:24:01 +02:00
John Ralls
582edc1b31 CMakeLists.txt: Remove Apple architecture settings.
Those should be passed in as part of CFLAGS/CXXFLAGS.
2017-04-29 17:53:10 -07:00
John Ralls
e79d9b5cba Updated ar.po from ashalash@msn.com
After removing duplicate translator email addresses and reference to the
Translation Project's Arabic team.
2017-04-29 17:53:10 -07:00
fell
2206f0a518 Fix wrong displayed position of the verbose flag in gnc-fq-dump 2017-04-29 01:27:55 +02:00
Geert Janssens
1a3595cbeb Convert gnc_dmy2timespec{,_end,_neutral} to use the equivalent GncDateTime constructor
This required a couple of tweaks to the tests because:
- the invalid date returned for impossible conversions is different between the old implementation and the cpp edition
- unhandled glib warnings caused the tests to abort
2017-04-28 18:41:04 +02:00
Geert Janssens
7a037932ae Align day end time as used in the GncDateTime constructor and gnc_dmy2timespec_end
The former was using 23:59:00 while existing code was using 23:59:59. To avoid
disruptions, stick with the latter in our cpp code as well.
2017-04-28 18:41:04 +02:00
Geert Janssens
586b89c6ca Fix John's remarks 2017-04-28 18:41:04 +02:00
Geert Janssens
610f6309a3 Fix double free abort in gtest-gnc-datetime.cpp
This double free happened after the introduction of a class variable (static member variable
to GndDate and the test compiling in gnc-datetime.cpp *and* at the same time linking to
gnc-qof. This apparently threw off internal memory management. Removing either of linking to
gnc-qof or compiling in the source file solved it.
Credits go to John Ralls for debugging this.
2017-04-28 18:41:04 +02:00
Geert Janssens
209f971589 Add constructor to create GncDate from string and predefined date format
Primary use case is for parsing dates from external sources (importers)
2017-04-28 18:41:04 +02:00