Commit Graph

18259 Commits

Author SHA1 Message Date
John Ralls
92549209c0 Fix ENDIF() parameter.
CMake 3.8 complains.
2017-07-13 13:46:45 -07:00
John Ralls
4774332fcb Add CMake files and .gitattributes to lf-only files. 2017-07-13 13:46:45 -07:00
John Ralls
489d0513e0 Adjustments to build on mingw-64.
Note that there may be some changes here that need to be wrapped with ifdef.
2017-07-13 13:46:44 -07:00
Alex Aycinena
48948c5ce6 Change test-gnc-ui-util.c and test-option-util.cpp so that test-app-utils passes during make check. 2017-07-13 12:52:02 -07:00
Geert Janssens
b55a3e7d72 Fix cmake's build as installed
That is copy the required icons and images into the respective locations at build time
2017-07-12 11:59:37 +02:00
Alex Aycinena
f3858fcd48 Revert changes to test-gnc-ui-util.c until I can get my system to test them. 2017-07-11 09:09:19 -07:00
Geert Janssens
0bb51ffa95 Merge branch 'dist-alignment' 2017-07-10 22:00:40 +02:00
Geert Janssens
453af7f081 Align master-only dist files between cmake and autotools 2017-07-10 22:00:15 +02:00
Alex Aycinena
fb609ff028 Fix error of incorrect argument passed to gnc_commodity_new. 2017-07-10 11:38:42 -07:00
Geert Janssens
f4832e4584 Merge branch 'maint' 2017-07-10 20:23:09 +02:00
Geert Janssens
b430744fb5 Merge branch 'maint' 2017-07-10 20:22:35 +02:00
Geert Janssens
17c48b19a7 Fix a couple of double EXTRA_DIST declarations from the previous commit 2017-07-10 20:16:35 +02:00
Geert Janssens
b1f9f80110 Add CMakeLists.txt files to dist tarball generated by autotools
This is half of the work to align the cmake and autotools generated dist tarballs.
What's missing in the cmake dist tarball on my system are all the files generated
or installed by running autogen.sh. I can't test this because cmake can't run
my version of automake (1.15), or at least our CMake configuration prevents this from happening.
2017-07-10 20:06:31 +02:00
Geert Janssens
eb55b5f98c Rework icon cache loading
- We actually don't care about the available icon sizes so stop checking for them.
- Even if an icon isn't found continue (with a warning). Gtk uses a fallback icon in most cases.
2017-07-10 12:09:51 +02:00
Geert Janssens
85ce243ef8 Add icons in the proper directory 2017-07-10 12:07:32 +02:00
Robert Fewell
69ef9ccc0b Replace style strings with proper defined types 2017-07-09 21:56:35 +02:00
Robert Fewell
faf895bdfc Redo the change to Gtk3.10 based glade file from current master 2017-07-09 21:56:35 +02:00
Robert Fewell
8784a789b9 Remove the preference for showing an icon and label
It was decided that this was not the right approach and possibly be
based on OS and desktop. This reverts it back to original behaviour.
2017-07-09 21:56:35 +02:00
Robert Fewell
c3e865c929 Remove setting the rules hint for tree views
This has been removed in Gtk4 and is discouraged in use so it has been
decided to remove completely.
2017-07-09 21:56:35 +02:00
Robert Fewell
9964563082 Fix mistake in changing button labels from stock
Did not add the alt key option
2017-07-09 21:56:35 +02:00
Robert Fewell
e5ca36cf55 Fix mistake in adding style context to Find Transactions dialog
Added another parameter to gnc_search_dialog_create to pass a style
class so it can be added to the search dialog which resulted in updating
 other files as well.
2017-07-09 21:56:35 +02:00
Robert Fewell
ad6ad923df Replace register Gtk3 deprecated functions in gnucash-sheet.c 2017-07-09 21:56:35 +02:00
Robert Fewell
a437e2405d Replace register Gtk3.14 deprecated functions related to gtk_arrow
Replaced gtk_arrow with a gtk_image_from_icon and used 'go-down' and
'go-up', may need to replace with our own.
2017-07-09 21:56:35 +02:00
Robert Fewell
200f7baf53 Replace register GTk3.16 deprecated function gdk_cursor_new 2017-07-09 21:56:35 +02:00
Robert Fewell
7d1abfa28f Replace deprecated Gtk3.22 function to get monitor size 2017-07-09 21:56:35 +02:00
Robert Fewell
5536fb175d Replace Gtk3.20 deprecated functions in gnc-cell-renderer-popup.c
This still needs a couple of changes but it still works
2017-07-09 21:56:35 +02:00
Robert Fewell
3f1c2ae26a Replace Gtk3.22 deprecated functions to do with monitor size 2017-07-09 21:56:35 +02:00
Robert Fewell
6790066ff4 Replace Gtk3.20 functions in gnc-date-edit.c 2017-07-09 21:56:35 +02:00
Robert Fewell
f853441402 Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
54019608ee Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
d4faad8bf6 Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
b52a298b0d Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
9a5b0ff972 Replace Gtk3.22 deprecated function to get monitor size 2017-07-09 21:56:35 +02:00
Robert Fewell
b098ab2e44 Replace Gtk3.20 deprecated functions based on device_manager 2017-07-09 21:56:35 +02:00
Robert Fewell
32c46481b1 Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
18769d90f8 Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Robert Fewell
3bb33a2796 Replace Gtk3.22 deprecated gtk_show_uri 2017-07-09 21:56:35 +02:00
Geert Janssens
ff93071608 Rework our icon management
They are now all stored in a directory structure similar to the final
installation target, so no more copying of images during build is needed.
Both Makefile.am and CMakelists.txt behave the same now.

Some additional cleanups:
- move stock_move related images to art; they aren't used so don't need to be installed
- clean up icon loading

There is one harmless warning still at run time about not all requested image
sizes being found. This is odd because they are all installed. I suspect gtk
no longer searches for these resolutions. Perhaps we just shouldn't run the
check on them. The application works fine even without the images in the
requested resolution.
2017-07-09 21:49:07 +02:00
Alex Aycinena
2020bee03b Book-Currency Feature step 6
Modify File->Properties dialog to maintain a default gain/loss account in a book KVP.

The changes made are:

	app-utils/app-utils.scm - define items related to book default gain/loss
        acct
	app-utils/business-prefs.scm - define items related to book default
        gain/loss acct;re-arrange sequence of options to make default (neither)
        first
    app-utils/gnc-ui-util.c - refine gnc_book_get_default_gains_policy to check
        for hidden and/or placeholder status
	app-utils/option-util.c & h - define items related to book default gain/loss
        acct
	app-utils/options.scm - add functionality related to book default gain/loss
        acct
    app-utils/test/test-gnc-ui-util.c - for gnc_book_get_default_gains_policy,
        add tests to check for hidden and/or placeholder status
	app-utils/test/test-option-util.cpp - add tests related to book default
        gain/loss acct
	engine/engine.i - define item related to book default gain/loss acct
	gnome-utils/dialog-options.c & h - add functionality related to book default
        gain/loss acct and rearrange dialog layout; make gain/loss acct widget
        refresh on account maintenance
    gnome-utils/gnc-main-window.c - only allow one book-option dialog if called
        from file->properties
	gnome-utils/gtkbuilder/dialog-options.glade - increase dialog height to
        accomodate book default gain/loss acct widget; add tooltip text for
        dialog buttons
    gnome/assistant-hierarchy.c - change sequence of pages: book options before
        currency selection; if book currency selected, currency also selected
    gnome/gtkbuilder/assistant-hierarchy.glade - increase dialog height to
        accomodate book default gain/loss acct widget
2017-07-09 12:19:36 -07:00
Geert Janssens
a7f1f9cdd7 Fix build with cmake > 3.5 2017-07-09 12:45:01 +02:00
John Ralls
a6678e6a49 Allow compilation with either Webkit2Gtk-4.0 or WebKit2Gtk-3.0.
WEBKIT1 for windows is a placeholder, it will need a pkgconfig check too.
2017-07-08 15:08:07 -07:00
John Ralls
90f706c651 Adjust Makefile.am for pixmap hierarchy change in 4aea4c5. 2017-07-08 14:07:13 -07:00
John Ralls
f3b60c3a71 Don't warn about all of the deprecated Gtk functions we're using. 2017-07-08 14:04:51 -07:00
Geert Janssens
3c65795d24 Travis - install libgtk-3-dev and libwebkit2gtk-3.0-dev before building 2017-07-08 19:06:35 +02:00
Geert Janssens
dabf458f06 A few cleanups from the previous merge commit 2017-07-08 18:18:11 +02:00
Geert Janssens
5405cf480c Merge branch 'gtk3' 2017-07-08 17:49:44 +02:00
Robert Fewell
078467e3f9 Make the About dialog sizeable and format AUTHORS and DOCUMENTERS
The & needed to be escaped and the hyperlinks so the text can be better
formatted.
2017-07-06 10:03:58 +01:00
John Ralls
c8402ad62e Merge CMake Distcheck from 'maint'.
Conflicts:
	CMakeLists.txt
	src/app-utils/CMakeLists.txt
	src/backend/sql/test/CMakeLists.txt
	src/backend/xml/test/CMakeLists.txt
	src/gnome-utils/CMakeLists.txt
	src/import-export/aqb/CMakeLists.txt
	src/import-export/csv-imp/CMakeLists.txt
	src/import-export/csv-imp/test/Makefile.am
	src/import-export/ofx/CMakeLists.txt
	src/import-export/qif-imp/CMakeLists.txt
	src/libqof/CMakeLists.txt
	src/register/ledger-core/CMakeLists.txt
	src/register/register-core/CMakeLists.txt
	src/register/register-gnome/CMakeLists.txt
	src/report/business-reports/CMakeLists.txt
	src/report/locale-specific/us/CMakeLists.txt
	src/report/report-gnome/CMakeLists.txt
	src/report/standard-reports/CMakeLists.txt
	src/report/stylesheets/CMakeLists.txt
2017-07-04 18:36:35 -07:00
Robert Fewell
06fef53a22 Replace Gtk3.14 function gtk_icon_theme_add_builtin_icon 2017-07-04 16:27:45 +01:00
Robert Fewell
737648c98d Missed this from previous commit 2017-07-04 16:27:04 +01:00