Gtksourceview - 2.x.x?

Hi,

Are there plans to upgrade gtksourceview to version 2.x ?

Gtksourceview - 1.x gives me some trouble lately, and I am wondering
whether gtksourceview 2.x would be better.

Just curious. :slight_smile:

One reason I am asking about this is because I have trouble compiling
gtksourceview 1.x lately.

I get errors such as these:

gcc -DHAVE_CONFIG_H -I. -I. -I… -DDATADIR="/usr/share"
-DG_LOG_DOMAIN=“GtkSourceView” -I… -I. -Wall -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wno-sign-compare
-I/Programs/Atk/1.28.0/include/atk-1.0 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/libxml2
-I/Programs/Libgnomeprint/2.18.6/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -O2 -march=athlon64 -fomit-frame-pointer
-frerun-loop-opt -MT gtktextregion.lo -MD -MP -MF
.deps/gtktextregion.Tpo -c gtktextregion.c -fPIC -DPIC -o
.libs/gtktextregion.o
if /bin/sh …/libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I… -DDATADIR=""/usr/share"" -DG_LOG_DOMAIN=“GtkSourceView”
-I… -I. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wno-sign-compare -I/Programs/Atk/1.28.0/include/atk-1.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2
-I/Programs/Libgnomeprint/2.18.6/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -O2 -march=athlon64 -fomit-frame-pointer
-frerun-loop-opt -MT gtksourceregex.lo -MD -MP -MF
“.deps/gtksourceregex.Tpo” -c -o gtksourceregex.lo gtksourceregex.c;
then mv -f “.deps/gtksourceregex.Tpo”
“.deps/gtksourceregex.Plo”; else rm -f “.deps/gtksourceregex.Tpo”; exit
1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I… -DDATADIR="/usr/share"
-DG_LOG_DOMAIN=“GtkSourceView” -I… -I. -Wall -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wno-sign-compare
-I/Programs/Atk/1.28.0/include/atk-1.0 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/libxml2
-I/Programs/Libgnomeprint/2.18.6/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -O2 -march=athlon64 -fomit-frame-pointer
-frerun-loop-opt -MT gtksourceregex.lo -MD -MP -MF
.deps/gtksourceregex.Tpo -c gtksourceregex.c -fPIC -DPIC -o
.libs/gtksourceregex.o
gtksourceregex.c:43: error: field ‘reg’ has incomplete type
gtksourceregex.c: In function ‘gtk_source_regex_compile’:
gtksourceregex.c:56: error: ‘RE_SYNTAX_POSIX_MINIMAL_EXTENDED’
undeclared (first use in this function)
gtksourceregex.c:56: error: (Each undeclared identifier is reported only
once
gtksourceregex.c:56: error: for each function it appears in.)
gtksourceregex.c:57: error: ‘struct re_pattern_buffer’ has no member
named ‘translate’
gtksourceregex.c:58: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c:59: error: ‘struct re_pattern_buffer’ has no member
named ‘allocated’
gtksourceregex.c:60: error: ‘struct re_pattern_buffer’ has no member
named ‘buffer’
gtksourceregex.c:62: warning: implicit declaration of function
‘re_compile_pattern’
gtksourceregex.c:62: warning: nested extern declaration of
‘re_compile_pattern’
gtksourceregex.c:64: warning: assignment makes pointer from integer
without a cast
gtksourceregex.c:66: warning: implicit declaration of function
‘re_compile_fastmap’
gtksourceregex.c:66: warning: nested extern declaration of
‘re_compile_fastmap’
gtksourceregex.c:69: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c:70: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c:75: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c: In function ‘gtk_source_regex_destroy’:
gtksourceregex.c:88: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c:89: error: ‘struct re_pattern_buffer’ has no member
named ‘fastmap’
gtksourceregex.c: In function ‘gtk_source_regex_search’:
gtksourceregex.c:135: error: ‘struct re_pattern_buffer’ has no member
named ‘not_bol’
gtksourceregex.c:136: error: ‘struct re_pattern_buffer’ has no member
named ‘not_eol’
gtksourceregex.c:138: warning: implicit declaration of function
‘re_search’
gtksourceregex.c:138: warning: nested extern declaration of ‘re_search’
gtksourceregex.c: In function ‘gtk_source_regex_match’:
gtksourceregex.c:184: error: ‘struct re_pattern_buffer’ has no member
named ‘not_bol’
gtksourceregex.c:185: error: ‘struct re_pattern_buffer’ has no member
named ‘not_eol’
gtksourceregex.c:187: warning: implicit declaration of function
‘re_match’
gtksourceregex.c:187: warning: nested extern declaration of ‘re_match’
make[4]: *** [gtksourceregex.lo] Error 1
make[4]: Leaving directory /Depot/j/gtksourceview-1.8.4/gtksourceview' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory/Depot/j/gtksourceview-1.8.4/gtksourceview’
make[2]: *** [all] Error 2
make[2]: Leaving directory /Depot/j/gtksourceview-1.8.4/gtksourceview' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/Depot/j/gtksourceview-1.8.4’
make: *** [all] Error 2

Where does RE_SYNTAX_POSIX_MINIMAL_EXTENDED come from?

Google says something about GNU Regexp but I don’t know what that really
means.

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Gtksourceview - 2.x.x ?” on Wed, 25 Nov 2009
16:06:50 +0100,
Marc H. [email protected] wrote:

Are there plans to upgrade gtksourceview to version 2.x ?

Gtksourceview - 1.x gives me some trouble lately, and I am wondering
whether gtksourceview 2.x would be better.

Ruby-GNOME2 includes Ruby/GtkSourceView2 as an experimental
package.

Thanks,

kou

Thanks for the information kou!