navit icon indicating copy to clipboard operation
navit copied to clipboard

WIP: Refactor:GTK: switch to GTK3

Open okias opened this issue 4 years ago • 5 comments

Compiles, open window and also shows menu with some warnings.

okias avatar May 21 '20 13:05 okias

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.

metalstrolch avatar Jun 21 '20 22:06 metalstrolch

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.

metalstrolch avatar Jun 22 '20 21:06 metalstrolch

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.

okias avatar May 22 '21 11:05 okias

Glad to see somebody finally continues this. Concentrate on the build warnings first. The segfaults may be connected to the warnings.

metalstrolch avatar May 22 '21 11:05 metalstrolch

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.

okias avatar May 22 '21 16:05 okias