Skip to content

Commit dc6fd8e

Browse files
Merge pull request #127 from gtk-rs/minimum-versions
Minimum versions
2 parents bdae125 + 46e10e9 commit dc6fd8e

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ _site
22
.sass-cache
33
Gemfile.lock
44
**.DS_Store
5+
.bundle
6+
vendor

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exclude:
1414
- README.md
1515
- "Gemfile*"
1616
- "*.sh"
17+
- vendor
1718

1819
# Build settings
1920
markdown: kramdown

css/main.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,17 @@ div.footer > div {
6161
width: 33.3%;
6262
text-align: center;
6363
min-height: 5px;
64-
}
64+
}
65+
66+
table {
67+
width: 100%;
68+
text-align: left;
69+
border-collapse: collapse;
70+
}
71+
th {
72+
text-align: center;
73+
}
74+
th, td {
75+
border: 1px solid #ddd;
76+
padding: 2px 8px;
77+
}

index.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
6883
use gtk::{Application, ApplicationWindow, Button};
6984

7085
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");
7390

7491
application.connect_activate(|app| {
7592
let window = ApplicationWindow::new(app);

0 commit comments

Comments
 (0)