Skip to content
GtkBuilder + Inline JavaScript
C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
Makefile
README
g-script-js.c
g-script-js.h
script.c
script.ui

README

----------------------------------------------------------------------------
                     GtkBuilder + Inline JavaScript
----------------------------------------------------------------------------

This is a quick hack to allow writing javascript inside of a GtkBuilder xml
file and attaching signals to said javascript functions.

GScriptJs is an object that can be created from within the GtkBuilder file.
The "script" property is used to eval javascript into the JSContext.

Use a connect callback similar to connect_func in script.c.

Cheers, and Happy Hacking,

--
Christian Hergert <chris@dronelabs.com>
Something went wrong with that request. Please try again.