This re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19627 57a11ea4-9604-0410-9ed3-97b8803252fd
All of his other code has been licensed this way all along anyway.
After this change, all source code files are licensed under both
GPL version 2 and GPL version 3, which gives us enough flexibility in case any
requirements might switch to GPL v3-only. But currently we are for sure both.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19546 57a11ea4-9604-0410-9ed3-97b8803252fd
The implementation is a hacky workaround, but at least better than
having weird translations as in the current state. Note: Even
though new strings are introduced, they are not yet used in order
not to break the string freeze here. The new strings need to
be activated once the 2.4.0 string freeze is lifted.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19469 57a11ea4-9604-0410-9ed3-97b8803252fd
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18970 57a11ea4-9604-0410-9ed3-97b8803252fd
Note that only the type was renamed, but not any enums or function names.
Hence, the scheme wrappers should be unchanged completely (hopefully).
Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2010-March/027679.html
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18969 57a11ea4-9604-0410-9ed3-97b8803252fd
The former was already #define'd on the latter, so its removal gets
rid of one level of indirection which makes function lookup easier.
Also, the macro (!) qof_book_get_slots was turned into a normal
function again because that's what functions are for (and otherwise
the additional declaration in engine.i would break).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18800 57a11ea4-9604-0410-9ed3-97b8803252fd
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header
Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2009-August/026121.html
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18675 57a11ea4-9604-0410-9ed3-97b8803252fd
When opening an invoice search dialog from a specific company, list is populated by all invoices.
Patch by Geert Janssens
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18349 57a11ea4-9604-0410-9ed3-97b8803252fd
At the moment all major distributions feature Glade-3 which tends to
save a lot of lines less compared to Glade-2 because it does not define
properties whose values equal the default ones specified by Gtk+.
Unfortunately though, only very recent versions of Glade, v3.5.3+,
address the following two issues:
(1) GtkTable attachments are written in different order each times,
rendering diffs unusable.
(2) Currently we depend on the ability to use a name multiple times in a
single glade file and only newer versions allow to have uniqueness be
applied to each top-level widget.
Sorry for the confusion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17967 57a11ea4-9604-0410-9ed3-97b8803252fd
Glade 3 does not save properties with default values anymore. This
reduces patch sizes when Glade-3/Gtk+ is used with varying versions and
also avoids warnings about properties unknown to older Gtk+ versions.
The version Glade 3 used is 3.4.5.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17966 57a11ea4-9604-0410-9ed3-97b8803252fd
Allow to remove all elements which results in an "empty" new/refinement/...
search matching all available items. In that case grey out the match-type
combo in the upper right corner and add a label "Match all entries" where the
criteria list used to sit.
Patch by andi5.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17705 57a11ea4-9604-0410-9ed3-97b8803252fd
AM_CFLAGS is passed both to the compiler (.c -> .o) and to the linker, so it
should only have flags that are appropriate for both steps. AM_CPPFLAGS is
passed only to the compiler, so flags that are only appropriate for that step
(-I and -D flags, for example), should be in _CPPFLAGS instead of _CFLAGS.
Every gnucash-2.2.3 Makefile.am that passes -I flags gets it wrong, placing
them in _CFLAGS. It's not a functional bug (the linker ignores -I flags), but a
ton of superfluous flags makes the build output pretty verbose and hard to
debug when things do go wrong.
To make matters more confusing as a developer, the FOO_CFLAGS variable set by
PKG_CHECK_MODULES(FOO) is actually for _CPPFLAGS in the Makefile.am
('pkg-config --cflags' returns the -I flags).
A related -I bug (one that *is* functionally broken) is that sometimes a local
(build dir) -I flag is passed after a global (installed dependent library) one.
If my system happens to have a header installed from some unrelated thing,
compiler will find *that* one instead of the expected one in the source
directory. Should always pass all local -I before any global ones.
Patch by andi5 plus one manual addition in src/gnome-utils/Makefile.am
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17655 57a11ea4-9604-0410-9ed3-97b8803252fd
Previously, gtk_widget_show_all() and gtk_widget_hide() were called on
the dialog, so that everything except the dialog widget itself were set
visible. That way the user did not see the dialog filling up and
resizing on initialization. Buggy window managers do not like
subsequent map&unmaps though and do not make the search dialog pop up
correctly.
This change removes both calls and depends on the interesting subwidgets
being visible. For search.glade and the widgets inside dialog-search.c
this is guaranteed now.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16914 57a11ea4-9604-0410-9ed3-97b8803252fd
Free the search criteria box from its viewport and scrolledwindow and
let it take the space it needs. On the other hand, the search results
now fill the remaining space.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16557 57a11ea4-9604-0410-9ed3-97b8803252fd
On the one hand this avoids nasty redraws, so that the user need not
watch the dialogs getting filled by widgets. On the other, on Windows
because of #436721, dialogs are not redrawn correctly after a
gtk_window_resize(), rendering at least these two dialog partly unusable
without a full redraw.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16078 57a11ea4-9604-0410-9ed3-97b8803252fd
Change gnc-module.c to load the unique symbols based on the module filename.
Change gnc-module-api.h to declare the functions based on a provided filename.
Change ALL the modules to use the new symbol names.
This change should allow the code to build cleanly on the MacIntel platform.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15928 57a11ea4-9604-0410-9ed3-97b8803252fd
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
properties that have been stripped out in the past.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15433 57a11ea4-9604-0410-9ed3-97b8803252fd
properly. Problem pointed out by Steve Langasek and is listed as
Debian bug 406378.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15381 57a11ea4-9604-0410-9ed3-97b8803252fd
Rename libcore-utils to libgnc-core-utils
Rename libgncgnome to libgnc-gnome
Rename libgncmodule to libgnc-module
Rename libgncqof to libgnc-qof
Rename libgnc-backend-file to libgncmod-backend-file
Move libgnc-business-ledger to $prefix/lib
Move libgncqof-backend-qsf to $prefix/lib/gnucash
Move libgncmod-backend-file to $prefix/lib/gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15321 57a11ea4-9604-0410-9ed3-97b8803252fd
Modules are loaded directly with the g_symbol_* API now while dropping
the dependency on libltdl.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15317 57a11ea4-9604-0410-9ed3-97b8803252fd
g-wrap is gone. I, for one, welcome our new swig overlords.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15024 57a11ea4-9604-0410-9ed3-97b8803252fd
This new type is like QOF_TYPE_STRING but it sorts numerically
(first) and then sorts alphanumerically (by the tail of the
number). Added the QOF Type, the gnome-search support, and
modified TRANS_NUM to use the new type.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14892 57a11ea4-9604-0410-9ed3-97b8803252fd
the "deprecated-cleanup" branch (r13935:14581) back into trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14588 57a11ea4-9604-0410-9ed3-97b8803252fd
Just modify GLIB_LIBS and GLIB_CFLAGS so everyone properly
links against the glib26 compatibility library when necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14330 57a11ea4-9604-0410-9ed3-97b8803252fd
required libraries are not inferred from the dependencies by
that particular libtool, e. g. on windows/mingw32.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13637 57a11ea4-9604-0410-9ed3-97b8803252fd