Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript GTK bindings

The Bindings for the GTK library in Javascript maintained by Gnome, are they asynchronous or synchronous calls? I have not been able to find details one way or the other.

I would like to develop a NodeJS module for GTK for desktop app creation.

like image 987
Rixius Avatar asked Jul 28 '10 17:07

Rixius


People also ask

Does GTK use JavaScript?

Developers can easily integrate GJS with GTK and create powerful GTK applications using JavaScript.

What language does GTK use?

GTK is an object-oriented widget toolkit written in the programming language C; it uses GObject, that is the GLib object system, for the object orientation.

What is GTK used for?

A feature-rich development tool. GTK has all the features that a widget toolkit needs to have. These features make it the most trusted toolkit for developing Linux applications.


2 Answers

There is the start of static gtk bindings at https://github.com/Tim-Smart/node-gtk and I'm starting bindings to GObject Introspection Repository at https://github.com/creationix/node-gir. Both are incomplete. Mine is just a roadmap at the moment, but I've worked out some good planning with people offline.

If you have a specific app in mind you want to build and it doesn't require many widgets, then it might be easiest to just add those bindings to Tim Smart's repo. My GIR bindings, once complete will allow usage of pretty much any gnome library without having to keep bindings up to date.

like image 161
Tim Caswell Avatar answered Sep 30 '22 17:09

Tim Caswell


GTK is event loop based, so this should be possible. You'll have to integrate GMainLoop with node's main loop.

like image 38
Tobu Avatar answered Sep 30 '22 18:09

Tobu