Skip to content

hfmrow/gotk3_gtksource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE:

(since 2021/03/27) current gotk3_gtksource version comply with new gotk3 requirements, (that mean gotk3 version must be > 0.5.2) so you have to use Go bindings for GTK3 @ master from gotk3 repository instead of Release GOTK3 Version 0.5.2.

We plan to drop support for GOPATH mode in Go 1.17. In other words, Go 1.17 will ignore GO111MODULE. If you have projects that do not build in module-aware mode, now is the time to migrate. If there is a problem preventing you from migrating, please consider filing an issue or an experience report.

Golang GtkSourceView binding for use with gotk3

All this project was made under MIT license *

This repository must be used with gotk3: Go bindings for GTK3 only.



installation:
  • Ubuntu linux only ** see at bottom why.
  • Designed to be used with gtk3 >= 3.16 and gtksourceview >=3.18-4
  • Be sure you have latest gotk3 installed correctly and working right.
  • Use classic command: go get github.com/hfmrow/gotk3_gtksource/source for current Gtk3 v3.24, (Ubuntu focal). See below for specific versions.
  • Golang GtkSourceView follows the same rules as gotk3 for compiling different versions of gtksourceview.
Information about libgtksourceview versions:

Since libgtksourceview-3.0-dev start at GTK >= 3.16, minimal GtkSourceView version is limited to: libgtksourceview >= 3.18

Library Installation (Ubuntu):
$ sudo apt install libgtksourceview-3.0-dev
focal (20.04LTS) this version of Ubuntu may use libgtksourceview-3.0-dev too
$ sudo apt install libgtksourceview-4-dev

To install targeting your version of GtkSourceView:*

$ go install -tags gtksourceview_X_XX github.com/hfmrow/gotk3_gtksource/...

To rebuild the package for current GtkSourceView version 4+:

$ go install github.com/hfmrow/gotk3_gtksource/...

Gotk3 GtkSourceView wrapping progression

what for ?, check this out: GtkSourceView










Not fully wrapped but usable (implementation stopped)

  • async operations are not wrapped

This class is no longer maintained, patches are not accepted. There is a better implementation in the Tepl library.


information, Documentation: GtkSourceView


(*) Why the MIT license, simply because the ISC license type is not available in the repository creation choices. This repository is designed in the spirit of the original definition of the gotk3 LICENSE before this one.

(**) Why Ubuntu Linux only ... because i really don't know how to explain and deploy it on window, darwin and other Linux distros, i'm sorry. If you are able to doing that, you're welcome. All information are available at Ubuntu - libgtksourceview. Theoretically, sourceview 4 may work on amd64 arm64 armhf i386 ppc64el s390x, sourceview 3.0 amd64 arm64 armhf i386 powerpc ppc64el s390x both depending on OS version.