Commit Graph

136 Commits

Author SHA1 Message Date
Christian Stimming
d91e927158 Bug #628444: String improvements after string freeze is lifted
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20012 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-31 12:07:01 +00:00
Christian Stimming
0ede4fcda9 Remove doubled include files.
(Also, QuickFill.h doesn't depend on gdk.h)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19940 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 20:32:56 +00:00
Christian Stimming
88cb0b1b20 Replace more obsolete #define'd function names by their current names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19939 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 20:22:48 +00:00
Christian Stimming
febe74e6c0 Replace more obsolete #define'd function names by their current names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19936 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 21:00:23 +00:00
Christian Stimming
c8a1ebb93a Replace obsolete <QueryNew.h> #defines by the current <qof.h> function names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19932 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 21:30:59 +00:00
Christian Stimming
a57ed88ee0 Re-indentation of source code.
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
2010-10-03 12:27:44 +00:00
Christian Stimming
a4bb22b23c Clarify Derek's code to be licensed "GPL v2 or later" as he has confirmed in private email.
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
2010-09-04 20:00:15 +00:00
Christian Stimming
dfee800c87 I18n: Replace untranslatable sub-strings by the correct full strings.
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
2010-08-24 20:23:12 +00:00
Geert Janssens
cf899c042c Convert glade files to gtk+2.10, last batch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19423 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-13 14:37:56 +00:00
Christian Stimming
88d3b83579 Re-indentation of source code.
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
2010-03-27 21:01:56 +00:00
Christian Stimming
a322015eb8 Rename the type GUID into GncGUID because on Windows, the system headers have a type GUID which clashes with ours.
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
2010-03-27 21:01:21 +00:00
Christian Stimming
b7b34b87c9 Rename GNCBook into QofBook everywhere and remove separate header gnc-book.h.
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
2010-03-03 20:47:10 +00:00
Christian Stimming
a824e611e2 Re-indentation of source code, next batch.
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
2010-02-18 05:31:54 +00:00
Christian Stimming
2f998bed01 Bug #602051: Replace the word "string" in GUI messages by non-developer wordings.
Same for dialog -> window.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18549 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-05 22:09:25 +00:00
Phil Longstaff
d5a4c757ff Fix enhancement bug 101456 - 'Find' dialog cumbersome for Business functions
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
2009-09-26 00:07:49 +00:00
Phil Longstaff
41950b6070 Fix bug 595015 - compiler warnings for missing printf format specs, gcc 4.2.1
Patch by David Reiser


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18314 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:38:56 +00:00
Phil Longstaff
89bfcce989 Rename lib/libqof -> src/libqof
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18029 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-07 00:48:53 +00:00
Phil Longstaff
9ded71b028 Remove some unnecessary dependencies
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18018 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-05 17:29:22 +00:00
Andreas Köhler
4619a7b38c Revert r17966 and use Glade-2 again.
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
2009-03-02 21:15:41 +00:00
Andreas Köhler
47ede669f2 Re-save glade files from Glade 3, remove util/glade-fixup.
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
2009-03-01 19:13:14 +00:00
Christian Stimming
0b5de42bc5 Bug #115066: Enable "Search For" dialog that matches all.
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
2008-11-16 21:44:49 +00:00
Christian Stimming
60c32fd16b Bug #514043: Use AM_CPPFLAGS instead of AM_CFLAGS.
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
2008-10-25 20:30:47 +00:00
Andreas Köhler
fead1da0b7 Fix -Wformat gcc warnings.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17254 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-07-04 00:42:00 +00:00
Andreas Köhler
4e87d41e05 #513088: Do not show search dialog and hide it immediately afterwards.
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
2008-02-03 00:59:11 +00:00
Andreas Köhler
a99782927b In search dialog, make top part naturally sized and bottom part expandable.
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
2007-10-08 21:55:03 +00:00
Andreas Köhler
12d95d5262 Deuglify the account selection dialog for the account search a little bit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16097 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-18 15:14:01 +00:00
Andreas Köhler
03ccfc502e Make search and tax info dialogs invisible at the top-most level.
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
2007-05-13 00:10:08 +00:00
Derek Atkins
167feed527 Make sure that each GNCModule has a unique set of symbols.
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
2007-04-18 23:23:04 +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
Joshua Sled
c91cb881bd Overhaul gnc/qof logging: Add default log handler that implements a "log4x"-style log level hierarchy. Correctly use G_LOG_DOMAIN, raw glib logging. Cleanup tests that are too loud afterwards.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15537 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-09 17:35:00 +00:00
David Hampton
8e40824e19 Update for the new base level of gtk2.6. Add all the gtk2.6
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
2007-01-27 04:33:37 +00:00
David Hampton
17f3998566 Fix cases where something that should be a GType isn't defined
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
2007-01-15 00:52:04 +00:00
Andreas Köhler
e8720a89db Compile GncModule's with --avoid-version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15322 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-07 07:04:47 +00:00
Andreas Köhler
b34a1c9f3f Unify library names and installation directories.
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
2007-01-07 07:04:23 +00:00
Andreas Köhler
2e69bba2db Merge reshuffle-modules (r15315) back into the trunk.
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
2007-01-06 00:41:51 +00:00
Chris Shoemaker
31e926c486 Merge swig-redo branch back into trunk.
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
2006-10-15 19:02:05 +00:00
Derek Atkins
8bf369217a Revert r14892 in order to try a different approach.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14902 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-27 13:30:05 +00:00
Derek Atkins
2bb357def4 Add a new QOF_TYPE_NUMSTRING to add numeric sorts. (#150799).
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
2006-09-26 00:36:30 +00:00
Andreas Köhler
64e0e791df Use some more automatic scrollbars in GtkScrolledWindow's.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14866 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-09-19 00:56:26 +00:00
Christian Stimming
44ddca68cd Add REGEX_LIBS linker flag that is needed on win32 platform
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14743 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-28 09:31:29 +00:00
Andreas Köhler
a2db583699 Unref all new stores.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14592 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-08-05 09:18:26 +00:00
David Hampton
e5b0bdbe10 Remove the majority of the remaining deprecated widgets by collapsing
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
2006-08-02 18:13:30 +00:00
Andreas Köhler
4762dbf429 String fixes that have been delayed due to the string freeze.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14493 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-07-13 22:58:55 +00:00
Derek Atkins
3366829dc2 Move the GLIB26 compatibility checks to configure.in.
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
2006-06-05 03:39:54 +00:00
David Hampton
d982c50662 Don't ever reference lib/glib26 if the host system has glib 2.6 or
better installed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14328 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-05 02:44:25 +00:00
David Hampton
e5c0029700 Add lib/glib26 to the include and library paths.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14327 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-06-05 01:48:35 +00:00
David Hampton
3b7b0ad4f5 Update the help file names now that the docs are xml instead of
html.  Fixes #343255.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14254 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-30 04:41:44 +00:00
David Hampton
5aa2cc3552 Regularize capitalization of the word 'GnuCash'.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13691 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-23 21:40:12 +00:00
Christian Stimming
cc8a795330 Add more linker flags for referenced libraries. Necessary when the
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
2006-03-15 12:51:43 +00:00
Derek Atkins
470625b385 Make sure we translate the button label string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13600 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 18:10:19 +00:00