On Thu, 3 Nov 2016, Allin Cottrell wrote:
On Thu, 3 Nov 2016, Sven Schreiber wrote:
> Hi,
> I've had a report from a server administrator that building gretl 2016c
> failed with respect to some GUI components, related to gtksourceview, when
> using gtk2 (--enable-gtk2).
[...]
Ah, the respective functionality of successive gtksourceview versions is not
well documented, but from grubbing through the code I see that word
completion was new in version 2.10. I've now added a check for that in
gretl's configure script. Gtksourceview 2.8.2 is usable, you just won't get
the option of word completion.
I should maybe add: here's a workaround for anyone wanting to build
gretl 2016c with gtksourceview < 2.10.5:
Edit near the top of the source file gui2/textbuf.c, replacing this
block:
#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 16
/* the gtksourceview 2.0 completion UI depends on gtk >= 2.16 */
# define COMPLETION_OK 0
#else
# define COMPLETION_OK 1
# include <gtksourceview/completion-providers/words/gtksourcecompletionwords.h>
#endif
with the single line:
#define COMPLETION_OK 0
Allin