navit
navit copied to clipboard
WIP: Refactor:GTK: switch to GTK3
Compiles, open window and also shows menu with some warnings.
Continued this a little bit: Porting the now missing expose_event callback to the newer draw callback fixes the crash and allows drawing. Refactor some deprecated things and add mouse wheel to event list.
Now draws using gtk3. Menu unchecked and still compiling with warnings.
OK, somehow the GUI shows up now. But a lot of it seems not to work. It quite often segfaults. A lot of deprecation warnings during build. Will leave this alone for some time.
rebased a top of current git and didn't crashed yet.
EDIT: also tested on Mobian + wayland based Phosh (phone OnePlus 6T), also somehow work. I'll try -Werror
for GTK subsystem.
Glad to see somebody finally continues this. Concentrate on the build warnings first. The segfaults may be connected to the warnings.
more I looking at it, it look to me it would make sense to do complete rewrite [1] to GTK 3 (or directly to GTK 4, since devices and phones can benefit from 3D accelerated view).
[1] rewrite I mean redesign the interface again, not just migrate from GTK 2 to 3.
With my current pace and inability to get even maps in compatible format [http://maps9.navit-project.org/ doesn't work for me], I'm kinda losing hope I'll be able to do the whole job.