[Gtk-sharp-list] C#/GTK# Bindings to gtksourceview
13 Jan 2003 13:20:51 +0100
Miguel de Icaza <email@example.com> writes:
> > Can the gtksourceview widget in debugger be used for other applications?
> > Can it work on Windows too? What would I need to do to get it working in my
> > own GTK# application?
> You might want to copy the gtksourceview source code and the generated
> bindings we put in the debugger for that.
Just had a look at this, we don't use anything in the debugger except the unmodified
gtksourceview source code (from GNOME CVS) and some makefiles to generated the C# wrapper.
Basically, what you need is
a) a copy of the gtksourceview source code from GNOME CVS
c) A file containing (this is debugger/widgets/gtksourceview.sources)
"sources/gtksourceview Gtk gtksourceview"
d) You run (gapi.pl comes from gtk#, `generator' is the output directory and
`gtksourceview.sources' is the file from point c))
PERLLIB=$(GTKSHARP_PREFIX)/share/perl5 PATH=$(GTKSHARP_PREFIX)/bin:$$PATH gapi.pl gtksourceview.sources generator
This'll create generator/gtk-api.xml
e) You run
$(RUNTIME) @GTKSHARP_PREFIX@/bin/gapi_codegen.exe --generate $(APIS) --include $(API_INCLUDES) && touch generated-stamp
to generate the stubs.
Btw. what kind of an application is this where you want to use it, if you want, I can make
the debugger install it publically.