Giter VIP home page Giter VIP logo

gotk3_gtksource's Introduction

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.

gotk3_gtksource's People

Contributors

hfmrow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

gotk3_gtksource's Issues

Version for Mac

Hi, today I have tried this project on Mac OS 11.5.2 (with m1), everything works only with minor changes:
I add to source_facility.go cgo rows which help to find headers:

// #cgo pkg-config: gio-2.0 glib-2.0 gobject-2.0
// #cgo pkg-config: gtk+-3.0 gtksourceview-4
// #cgo CFLAGS: -Wno-deprecated-declarations 

and of cource in all files where necessary I added:
// +build linux darwin

And I could to compile the example. this is an a result:
Screenshot 2021-08-23 at 00 18 01

Maybe we could do those changes to the main branch?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.