@@ -5,7 +5,7 @@ layout: wide
5
5
<div class =" intro-col-wrapper " >
6
6
<div class =" intro-col intro-col-1 " markdown =" 1 " >
7
7
8
- ### [ Rust] bindings for [ GTK+ 3] [ GTK ] , [ Cairo] , [ GtkSourceView] and other [ GLib] -compatible libraries
8
+ ## [ Rust] bindings for [ GTK+ 3] [ GTK ] , [ Cairo] , [ GtkSourceView] and other [ GLib] -compatible libraries
9
9
10
10
[ ![ GTK screenshot] ( gtk.png )] ( gtk.png )
11
11
@@ -33,11 +33,26 @@ layout: wide
33
33
</div >
34
34
</div >
35
35
36
+ | Crate | Minimum supported version |
37
+ | -------| ---------------------------|
38
+ | [ atk] ( https://crates.io/crates/atk ) | 2.30 |
39
+ | [ cairo] ( https://crates.io/crates/cairo ) | 1.14 |
40
+ | [ gdk] ( https://crates.io/crates/gdk ) | 3.16 |
41
+ | [ gdk-pixbuf] ( https://crates.io/crates/gdk-pixbuf ) | 2.32 |
42
+ | [ gio] ( https://crates.io/crates/gio ) | 2.44 |
43
+ | [ glib] ( https://crates.io/crates/glib ) | 2.44 |
44
+ | [ gtk] ( https://crates.io/crates/gtk ) | 3.16 |
45
+ | [ pango] ( https://crates.io/crates/pango ) | 1.38 |
46
+ | [ pangocairo] ( https://crates.io/crates/pangocairo ) | 1.0 |
47
+ | [ sourceview] ( https://crates.io/crates/sourceview ) | 3.0 |
48
+
49
+ <div style =" display :block ;margin-top :16px " ></div >
50
+
36
51
## Using
37
52
38
- Prepare your system: [ Requirements ] ( http://gtk-rs.org/docs-src/requirements.html )
53
+ First, prepare your system by taking a look at the [ requirements ] ( http://gtk-rs.org/docs-src/requirements.html ) .
39
54
40
- Include ` gtk ` and ` gio ` in your ` Cargo.toml ` and set the minimal GTK version required by your project:
55
+ Then include ` gtk ` and ` gio ` in your ` Cargo.toml ` and set the minimal GTK version required by your project:
41
56
{% assign gtk = site.data.crates | where: "name", "gtk" %}
42
57
43
58
~~~ toml
@@ -68,8 +83,10 @@ Create an application, etc.
68
83
use gtk :: {Application , ApplicationWindow , Button };
69
84
70
85
fn main () {
71
- let application = Application :: new (Some (" com.github.gtk-rs.examples.basic" ), Default :: default ())
72
- . expect (" failed to initialize GTK application" );
86
+ let application = Application :: new (
87
+ Some (" com.github.gtk-rs.examples.basic" ),
88
+ Default :: default (),
89
+ ). expect (" failed to initialize GTK application" );
73
90
74
91
application . connect_activate (| app | {
75
92
let window = ApplicationWindow :: new (app );
0 commit comments