Sha256: 8c0d66eaafabd455671a3ea032f408a8ecb70ba5e691e4193dc5a4dd69f290a9

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

# GirFFI-Gtk

GirFFI-based bindings for Gtk+. Supports both Gtk+ 2 and Gtk+ 3.

## Usage

Gtk2:

    require 'gir_ffi-gtk2'
    Gtk.init
    win = Gtk::Window.new :toplevel
    win.show
    GObject.signal_connect(win, "destroy") { Gtk.main_quit }
    Gtk.main

Gtk3:

    require 'gir_ffi-gtk3'
    Gtk.init
    win = Gtk::Window.new :toplevel
    win.show
    GObject.signal_connect(win, "destroy") { Gtk.main_quit }
    Gtk.main

See the `examples/` directory for more examples.

## Requirements

First, make sure the `ffi` gem is properly installed. See its documentation for
the necessary requirements.

GirFFI-Gtk itself depends on the GirFFI gem, and the gobject-introspection and
gtk+ libaries.

For debian-like systems, try the following for Gtk+ 3:

    apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-3.0

and for Gtk+ 2:

    apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-2.0

## Install

    gem install gir_ffi-gtk

## License

Copyright © 2012–2015 [Matijs van Zuijlen](http://www.matijs.net)

GirFFI-Gtk is free software, distributed under the terms of the GNU Lesser
General Public License, version 2.1 or later. See the file COPYING.LIB for
more information.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.8.1 README.md
gir_ffi-gtk-0.8.0 README.md