Menu
  • HOME
  • TAGS

Gsv::buffer error

c++,gtkmm,coredump,gtksourceview

You create a pointer, but you don't actually make it point anywhere. In essence, buffer is a null pointer. From the RefPtr default constructor refernece: Afterwards it will be null and use of -> will cause a segmentation fault. You need to explicitly create the object pointed to, using the...

gtksourceview language file regex - look behind

xml,regex,gedit,gtksourceview

Someone from the gedit mailing list answered me, apparently XML does not like the < character, it needs to be replaced: (?&lt;=...) It works then. The regex flavour is PCRE. ...

GtkSource module not importing in Python

python,gtk,gtksourceview

It should be self.source = GtkSource.View() This works for me on Debian...

Efficiently matching correctly spelled parts of arguments with regex

regex,gtksourceview

Unfortunately, there isn't really a less tedious way to do it. About your pattern: Note that GtkSourceView uses the PCRE regex engine that is an NFA regex engine. So when you write an alternation, the first alternative (from left to right) that matches will succeed and the regex engine will...