@@ -5,7 +5,7 @@ layout: wide
55<div class =" intro-col-wrapper " >
66 <div class =" intro-col intro-col-1 " markdown =" 1 " >
77
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
99
1010[ ![ GTK screenshot] ( gtk.png )] ( gtk.png )
1111
@@ -33,11 +33,26 @@ layout: wide
3333 </div >
3434</div >
3535
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+
3651## Using
3752
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 ) .
3954
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:
4156{% assign gtk = site.data.crates | where: "name", "gtk" %}
4257
4358~~~ toml
@@ -68,8 +83,10 @@ Create an application, etc.
6883use gtk :: {Application , ApplicationWindow , Button };
6984
7085fn 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" );
7390
7491 application . connect_activate (| app | {
7592 let window = ApplicationWindow :: new (app );
0 commit comments