Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internalize parts of the goffice code
We're using only a tiny fraction of that library. Adding it directly in the gnucash source saves a large dependency chain. Note this is a verbatim copy of these files from https://github.com/GNOME/goffice/tree/GOFFICE_0_8_17 to preserve a clean link with it's origin. It will only build correctly after the next commit.
- Loading branch information
Showing
10 changed files
with
2,540 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
if GNUCASH_ENABLE_GUI | ||
SUBDIRS = libc stf | ||
SUBDIRS = libc stf goffice | ||
else | ||
SUBDIRS = libc | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
noinst_LTLIBRARIES = libgnc-goffice.la | ||
|
||
REALSRCS = go-optionmenu.c \ | ||
go-charmap-sel.c \ | ||
go-glib-extras.c | ||
REALHDRS = go-optionmenu.h \ | ||
go-charmap-sel.h \ | ||
go-glib-extras.h | ||
|
||
libgnc_goffice_la_SOURCES = ${REALSRCS} | ||
noinst_HEADERS = ${REALHDRS} | ||
|
||
libgnc_goffice_la_LIBADD = $(GTK_LIBS) | ||
|
||
AM_CPPFLAGS = $(GTK_CFLAGS) | ||
|
||
EXTRA_DIST = $(REALSRCS) $(REALHDRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This code is extracted from goffice. | ||
|
||
In particular, | ||
- go-charmap-sel is a widget to allow the user to select an encoding | ||
- go-option-menu is a widget used by go-charmap-sel to add manu items | ||
with a radio button. | ||
- go-glib-extras is copied because we use a few functions from it: | ||
- go_ascii_strcase_equal and go_ascii_strcase_hash | ||
- go_guess_encoding | ||
|
||
This code is currently used by the csv importer, but could be useful | ||
in several interfaces that require the user to select an encoding | ||
(various importers and exporters mostly). |
Oops, something went wrong.