GJS examples showing how to build Gtk javascript applications (Gnome).
Download this project with:
git clone https://github.com/optimisme/gjs-examples.git
cd gjs-examples
Then run the examples with:
gjs egAsset.js
gjs egHeader.js
gjs egList.js
gjs egSearch.js
...
GJS example showing how to build Gtk javascript applications using Gtk.Image
GJS example showing how to build Gtk javascript applications setting the application icon from the 'assets' folder and if not available from the 'stock icons'
GJS example showing how to build Gtk javascript applications using Gtk.CssProvider from source code or from loaded .css files
GJS example showing how to build Gtk javascript applications using Gtk.Label and its justification options
GJS example showing how to build Gtk javascript applications emulating setTimeout, clearTimeout, setInterval and clearInterval functions with Mainloop timeout_add. It also shows how to import and use an application library
GJS example showing how to build Gtk javascript applications using Gtk.EventBox to catch events for widgets which do not have their own window
GJS example showing how to build Gtk javascript applications executing a non blocking command line call, it uses TextBuffer, TextView, GLib.spawn_async_with_pipes, Gio.UnixInputStream, Gio.DataInputStream and read_line_async
GJS example showing how to build Gtk javascript applications getting information from GLib and command line
GJS example showing how to build Gtk javascript applications adding an option to the application's Gio.Menu and opening dialog and modal windows using Gtk.Dialog
GJS example showing how to build Gtk javascript applications using Gtk TreeView and ListStore
GJS example showing how to build Gtk javascript applications reading and writting JSON files, the example makes use of Gio.File.new_for_path, replace_async, load_contents_async
GJS example showing how to build Gtk javascript applications with FileChooserDialog with FileFilter, set_extra_widget (ComboBox), Gio File new_for_path, load_contents_async, query_info_async
GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, and Popover buttons with Gtk Widget or Gio GMenu.
GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, SearchBar and a filtered FlowBox
GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, SearchBar, ActionBar, a filtered FlowBox, an application library and custom widgets to create a selection mode
GJS example showing how to build Gtk javascript applications using Gtk and Clutter, showing how to drag actors with Clutter.DragAction, perform animations with PropertyTransition, TransitionGroup and control the actor from Gtk.Scale
GJS example showing how to build Gtk javascript applications using Gtk and Cairo, the left example adds one Cairo actor to Clutter, the example on the right adds one Cairo widget to GTK using GtkClutter.Embed, Gtk.DrawingArea, Cairo.Context, Clutter.Canvas
GJS example showing how to build Gtk javascript applications using Webkit.WebView, also showing how to send messages from GTK to Webkit and vice versa