gtk3 + webkit

Robert Fewell 14ubobit at gmail.com
Thu Feb 2 08:48:32 EST 2017


Hi,

I was looking at the irc logs and see that gtk3 / webkit upgrade was
mentioned and that there were two options mentioned, one was change to some
thing like goo-canvas, the other was to complete register2 which I started
awhile back and failed to complete.

There is an other option that I came across in planner when I was thinking
about trying to convert my attempt to use gtk3 to see if that would solve
some issues after I had reverted the later changes. They had incorporated a
cut down version of gnome-canvas in there source that works with gtk3 and I
decided to give that a go.

If you look at https://github.com/Bob-IT/gnucash/commits/gtk3 you will see
that I have added a further reduced version of gnome-canvas along with
commits to fix first run compile errors and a converted register using it
and cairo.

This uses gtk3, I think a gtk3 version of webkit2 (I get confused about
versions), gtk3 version of goffice (this may not be needed with Geerts
changes), no aquabanking / ofx as I think that uses gtk2 and there is no
gtk3 versions and I believe you can not mix them. To build this you need to
disable warnings as errors which should give you a running version of
GnuCash with a working register, some things still needed to be changed,
namely the size of the drop down arrow on the calendar and to revert some
colour changes for testing.

I have made further changes to fix depreciated warnings and glade file
changes but I would need to check these against the current master, a lot
this was find and replace with gtk3 functions / widgets.

What I have observed is the following..,

Most glade files needed changing to eliminate spaces in the
add_builder_from_file line along with changing the depreciated widgets and
then realign to match existing layout
Gtk stock is depreciated and that changes images / buttons to icon names,
to get over this I just removed all images from buttons and to use text
only as a start.
You need to use inline CSS to achieve bits like the tab colours.

The main thing I could not get my head round was the change in toolbars /
menus / accelerator keys. Menu's can not have images on them and the way
they are created is totally different.

This was just a look at when I felt like it but may be some thing useful or
not worth while. I did have a look to see if I could get this to run on
Windows to make sure the changes I made worked but I could only find a gtk3
version 3.10.6 and no webkit version but I may not of been looking in the
right place.


Regards,
Bob


More information about the gnucash-devel mailing list