Commit Graph
52 Commits
Author SHA1 Message Date
Geert Janssens e5d01077cf Fix gnc-help protocol and illustrate its use in the hello world report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22636 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-12 17:42:10 +00:00
John Ralls dda1b7283e Remove invalid dependencies on LibGnome CFLAGS
Much work has been done to change LibGnome Druids to GtkAssistants. The
Makefiles in the containing directories no longer need to use $GNOME_CFLAGS
or $GNOME_LDFLAGS. In a few cases where there still is a dependency,
there's also a dependency on GCONF, so this change also adds $GCONF_CFLAGS
and $GCONF_LDFLAGS to those Makefiles to clarify the dependency.

There were also a few cases where the dependency consisted of a no-longer-
needed include, or where an include was more general than appropriate. 
This change cleans up those cases as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21796 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 23:28:23 +00:00
Christian Stimming 1961766c99 Re-indentation of source code.
As usual, 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@21205 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 07:10:56 +00:00
J. Alex Aycinena 60aa509039 Fix memory leaks found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20739 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-08 16:46:32 +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
Geert Janssens 35c352d09b Fix bug #582325 by refactoring some deprecated guile functions:
SCM_BOOLP -> scm_is_bool
SCM_NULLP -> scm_is_null
SCM_FALSEP -> scm_is_false
SCM_NFALSEP -> scm_is_true
SCM_VECTORP -> scm_is_vector
SCM_NUMBERP -> scm_is_number
SCM_CONSP -> scm_is_pair
SCM_STRING_CHARS -> scm_to_locale_string

Specifically the replacement of SCM_STRING_CHARS with scm_to_locale_string fixes Bug #582325

Additionally, I have renamed these internal functions for global consistency:
SCM_PROCEDUREP -> scm_is_procedure
SCM_LISTP -> scm_is_list
SCM_EXACTP -> scm_is_exact
SCM_EQUALP -> scm_is_equal

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18541 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-31 14:41:12 +00:00
Phil Longstaff b4f040a6ce Use SWIG properly to wrap functions to free strings which need to be freed by the caller.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18303 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-08 23:48:42 +00:00
Phil Longstaff f2612dea85 Fix bug 587891: Memory leak - results of gnc-build-url
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18294 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-05 13:16:20 +00:00
Phil Longstaff ea934ae4d0 Merge webkit branch into trunk.
In order to use the webkit as the html engine, use --enable-webkit on the configure
command.  In SCM files, gnc-html-engine-supports-css can be used to determine whether
the html engine is webkit (supports css) or gtkhtml (doesn't support css).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18041 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-11 01:44:14 +00:00
Charles Day 8e9551af98 Bug #551038: Don't destroy the options database before destroying the options dialog that depends on it.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17508 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-14 17:48:58 +00:00
Charles Day 3022fddbf1 Bug #542967: Go back to using the name of the report template in the title of report options dialog boxes.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17365 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-07-21 02:58:50 +00:00
Christian Stimming 3494820ae8 String improvements in gconf labels and error messages as pointed out by Clytie Siddall.
Those strings are invisible for almost any user anyway and can therefore
be back-ported soon, too.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16704 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-23 21:45:41 +00:00
David Hampton 10d17674e6 Remove unused functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15448 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:20:43 +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 1e9a1f874d Re-enable window sensitivity if the report fails. Fixes #341610
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14178 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-24 15:53:50 +00:00
David Hampton eec68c5f5f Parse the old ~/.gnome/GnuCash MDI document file to see which 1.8
reports should be opened the first time gnucash2 starts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13803 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-19 02:35:39 +00:00
Chris Shoemaker 58609204d9 More translator-friendly string placement.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13698 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-25 02:53:51 +00:00
Chris Shoemaker 171d26339c When opening GnuCash for the first time since 1.8.x, allow the user to
choose which reports (if any) to open.  If the user cancels the dialog,
   no reports are opened, otherwise, for each report, they are asked whether
   or not they want to open it.  However, if there are less than 4 reports
   the dialog is skipped and the reports are just opened.  Closes bug#335188.

   Note: if someone implements a solution that opened only precisely the
   reports that were left open in 1.8.x, it's fine to remove this extra code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13694 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-24 02:01:18 +00:00
Christian Stimming 1f61299d0d When translation potentially empty strings, check always for nonemptyness. Should avoid #330179 in the rest of the code as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13206 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 11:14:43 +00:00
David Hampton aa02242b0a Use a format string of "%s" when building a message dialog from a
single string.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13021 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 16:08:51 +00:00
Chris Shoemaker 6f5ef9f974 Check for invalid options tables when loading reports.
Also, plug memory leak in my last commit.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12989 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 06:15:31 +00:00
Chris Shoemaker 2bc6934c31 Avoid showing any invalid reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12988 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 05:27:08 +00:00
David Hampton f30362eaa3 Fix compilation warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12986 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 05:03:51 +00:00
Chris Shoemaker 64432b5521 Move the global report hash-table from guile to C.
Move the book-open/close hooks from guile to C.

   There are several places where we do report-management from C already.
   Those places no longer use libguile to access the hash-table of reports -
   they can just call C functions.

   For now, there's still some report-management happening in guile so guile
   can access the global state through g-wrapped functions.  Eventually, 
   all report-management should be in C and guile can just provide single
   reports one-at-a-time.
   


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12984 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 02:12:41 +00:00
David Hampton c94cfe2734 Use a GtkMessageDialog instead of the deprecated gnome_ok_dialog
function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12000 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-21 01:58:41 +00:00
David Hampton 63769c7e31 More include file tweaking. Don't include gtk.h from any header
files.  Add in some includes that are currently pulled in by
deprecated parts of the gnome library.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11983 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-20 02:54:09 +00:00
David Hampton db2bed0e58 Include file cleanup. Remove the messages.[ch] files in favor of the
glib supplied gi18n.h file.  Replace includes of gnome.h with gtk.h
(or better yet glib.h) wherever possible.  Don't include gnome.h from
any header files.  Remove some extraneous includes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11981 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-19 23:53:34 +00:00
David Hampton 0b8a944f30 Update FSF street address.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11964 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-17 05:35:02 +00:00
David Hampton 817dd3687f Add code to save window state into a Glib Key-Value file. This code
is distributed between the gnc-main-window code and all of the plugin
pages.  It subsumes the existing state file code, and will call that
code upon file open if it cannot find a key-value state file.  This
code is also where the creation of the initial account tree page
occurs when no state file is found.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11905 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-11 14:16:12 +00:00
David Hampton f28d033d74 Collapse the gnome2 branch back into HEAD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11565 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-11-02 03:32:36 +00:00
Christian Stimming ad6dd54a7b Identified and fixed several places with
untranslated strings.

2004-11-13  Christian Stimming  <stimming@tuhh.de>

	* src/report/report-gnome/window-report.c,
	src/scm/main-window.scm: Identified and fixed several places with
	untranslated strings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10334 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-11-13 12:48:00 +00:00
Christian Stimming 063e545fc0 Add toolbar element for saving the current report.
2004-06-30  Christian Stimming  <stimming@tuhh.de>

	* src/report/report-gnome/window-report.c: Add toolbar element for
	saving the current report.

	* src/report/report-system/report.scm, report-system.scm: Add
	function for saving one particular report to the
	~/.gnucash/saved-reports-1.8 file. Add extra menu only for
	customized reports.

	* src/scm/main-window.scm, src/scm/main.scm: Remove the previous
	function for saving all reports since it is no longer necessary.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10127 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 20:08:15 +00:00
Derek Atkins 154966f513 Fix a bunch of GUILE_WARN_DEPRECATED warnings.
* src/gnc-module/gnc-module.scm: create (and export) a re-export macro
	  is guile doesn't already provide one.  Then re-export the symbols
	  instead of exporting them.  Fixes some deprecated guile warnings.
	* src/guile-mappings.h: convert scm_gc_{un,}protect_object() back
	  to its pre-1.6 type for earlier guiles, but upconvert to the new
	  type to fix a deprecated warning.  Note that g-wrap is still
	  outputting deprecated code.
	* lots of other files:
	  convert scm_{un,}protect_object -> scm_gc_{un,}protect_object because
	  the former is now deprecated in guile.  Fixes a bunch of
	  GUILE_WARN_DEPRECATED warnings (but probably not all of them).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10094 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-26 14:52:12 +00:00
David Hampton 5fecbfccc6 Collapse the gnc_xxx_dialog_parented function into the corresponding
gnc_xxx_dialog function.  The remaining gnc_xxx_dialog function now
takes a parent pointer.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8966 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 00:17:33 +00:00
Linas Vepstas 0f5ff6f114 add missing include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8431 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 01:09:43 +00:00
Derek Atkins 57e598cc7c * src/gnome-utils/dialog-options.c: back out previous change.
* src/report/report-gnome/window-report.c: a better fix for
	  #107953.  When we are asked to reload the report, queue the
	  request, queue a draw event, and then return immediately.  When
	  the draw event happens, load the report then.  This lets you
	  hit Apply and then OK before the report finishes loading.

	* src/import-export/ofx/test/Makefile.am: make sure we can find
	  libofx/libofx.h


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8378 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-24 21:20:15 +00:00
David Hampton d154e92e71 Initial port from the deprecated (in 1.6) guile gh_xxx interface to
the supported scm_xxx interface.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8013 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-22 08:15:53 +00:00
David Hampton 3d406ca0aa The stream_handler hook needs to return a file size. Not all files
opened by this function are ASCII text.  Reset the base_location
properly when switching documents. Add debugging. #101783


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7721 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-24 07:23:56 +00:00
David Hampton 6af4501e06 Put function opening braces in column zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7720 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-24 06:55:32 +00:00
Christian Stimming 63d2dedaf5 Your daily translation fix. Also, move html tags out of the translation
messages into format strings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7423 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-10-29 18:24:21 +00:00
David Hampton 2305d0823d Don't unprotect #f. Crashes scheme when run under gdb.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7397 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-10-27 08:42:09 +00:00
Derek Atkins 40f6ede615 * Convert all (well, most all) HTML URL-generators to use
gnc_build_url() (or gnc:html-build-url in scheme) instead of
	assuming the HTML prototype string.  Unfortunately the
	help-window-index.scm cannot be fixed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7060 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 23:01:12 +00:00
Derek Atkins edc1a34ecc * gnc-html: convert URLType from enum to char*
* gw-gnome-utils-spec: wrap URLType type, #defines, and gnc_build_url()
	* get the rest of the C code to use URLTypes properly


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7052 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 17:27:11 +00:00
David Hampton 5e8141e95f First pass at menu rearranging
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6954 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-09 21:43:51 +00:00
David Hampton f31ae2e3f9 Move string formatting logic into the gnc_xxx_dialog routines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6819 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-04-21 21:56:54 +00:00
David Hampton 5a9fc4329f Add support to four more dialogs to automatically raise an existing
window if the user tries to create a new dialog.  Convert ten others
to use the new common logic for raising windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6810 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-04-19 03:55:29 +00:00
Dave Peticolas edbbab384a fix warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6706 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-10 09:57:39 +00:00
Rob Browning c4ddf8bb75 * src/report/report-gnome/window-report.c:
g-wrap-runtime-guile.h -> g-wrap-wct.h


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6598 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-09 22:02:46 +00:00
Dave Peticolas dd5b116a07 * src/report/report-gnome/window-report.h: add new init api
* src/report/report-gnome/window-report.c: move some report
initialization here from top-level.c

* src/report/report-gnome/gncmod-report-gnome.c: call new report
initialization function

* src/report/report-gnome/Makefile.am: add app-utils dependency


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6409 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:45:18 +00:00
Dave Peticolas cb98780999 * src/report/report-gnome/window-report.c: implement report
export handling gui here instead of in reports

* src/report/report-gnome/report-gnome.scm: don't use gw-gnc


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6325 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 10:49:55 +00:00