Spivoxity / obc-3

Oxford Oberon-2 compiler
38 stars 7 forks source link

Dependency on gtksourceview2.0 #44

Open Spivoxity opened 3 years ago

Spivoxity commented 3 years ago

The GUI for the debugger is currently built using gtksourceview2.0, using an internal, cut-down copy of the lablgtk bindings. In Debian Bullseye, gtksourceview2.0 has been withdrawn, and packages exist only for gtksourceview3.0 and -4.0. That makes it impossible to build the debugger on Bullseye, and presumably also on recent or forthcoming releases of other distros.

Spivoxity commented 3 years ago

I have fixed the issue on the development trunk by providing three options, activated by the configure flag -with-system-labltk=option

Depending on the installed version of ocaml, adjustments have also been made to the interface between the internal copy of lablgtk and the garbage collector; they are selected automatically.

Spivoxity commented 2 years ago

The plan for restoring Mac-like behaviour will be to install a local copy of the labgtk3 source, cut down appropriately (but not obsessively, Mike!), then add in the platform menu modifications I made in lablgtk2, affecting gtkMail.ml and ml_gtk.c.

The -with-system-lablgtk flag can then be withdrawn.

Or, better, call gtk_platform_menubar directly from the main program and put the primitive in debprims.c, allowing the use of an unmodified lablgtk.