[gtk-web: 3/5] Update rust language bindings




commit 9010a0264123cd40f4d1b10055deb411d8a9567f
Author: Julian Hofer <julianhofer gnome org>
Date:   Sat Aug 14 22:21:09 2021 +0200

    Update rust language bindings
    
    - Address comments
    - Fix outdated links

 _docs/language-bindings/rust.md | 35 +++++++++++++----------------------
 1 file changed, 13 insertions(+), 22 deletions(-)
---
diff --git a/_docs/language-bindings/rust.md b/_docs/language-bindings/rust.md
index e4ea922..c67a745 100644
--- a/_docs/language-bindings/rust.md
+++ b/_docs/language-bindings/rust.md
@@ -5,23 +5,26 @@
 
 ## About
 
-[**gtk-rs**](https://gtk-rs.org/) project deals with the Rust bindings for GTK, Cairo and other 
GLib-compatible libraries.
+The [**gtk-rs**](https://gtk-rs.org/) project contains Rust bindings for GTK, Cairo and other 
GLib-compatible libraries.
 
-The bindings of Cairo, Pango, Gio, Graphene, GLib are part of the the 
[gtk-rs](https://github.com/gtk-rs/gtk-rs/). While the bindings of GTK 4 are part of 
[gtk4-rs](https://github.com/gtk-rs/gtk4-rs/)
+The bindings of Cairo, Pango, Gio, Graphene and GLib are part of [gtk-rs 
core](https://github.com/gtk-rs/gtk-rs-core/).
+The bindings of GTK 4 can be found at [gtk4-rs](https://github.com/gtk-rs/gtk4-rs/).
 
 ## gtk-rs Documentation
 
-There is an official [gtk4-rs API Documentation](https://gtk-rs.org/gtk4-rs/git/docs/) for using GTK and 
Rust together.
+`gtk4-rs` provides extensive [documentation](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/index.html) 
for its API based on GObject-Introspection.
+An introduction to building GUI applications with Rust and GTK 4 is also available in the form of a 
[book](https://gtk-rs.org/gtk4-rs/git/book/).
 
-There are also a growing number of examples and thorough tests of language features in the test suite.
+The gtk4-rs Github repository features additional 
[examples](https://github.com/gtk-rs/gtk4-rs/tree/master/examples) which demonstrate solutions to specific 
problems.
 
-You can see all the gtk-rs examples [here](https://github.com/gtk-rs/gtk4-rs/tree/master/examples).
 
 ## A Hello World app
 
+This code shows how to use `gtk4-rs` to create a simple Hello World application.
+
 ```rust
 use glib::clone;
-// glib and other dependencies are re-exported from the gtk crate
+// glib and other dependencies are re-exported by the gtk crate
 use gtk::glib;
 use gtk::prelude::*;
 
@@ -38,28 +41,16 @@ fn on_activate(application: &gtk::Application) {
 }
 
 fn main() {
-    // Create a new application
-    let app = gtk::Application::new(Some("com.github.gtk-rs.examples.basic"), Default::default());
+    // Create a new application with the builder pattern
+    let app = gtk::Application::builder()
+        .application_id("com.github.gtk-rs.examples.basic")
+        .build();
     app.connect_activate(on_activate);
     // Run the application
     app.run();
 }
 ```
 
-### Explanation
-
-This code depicts how to use GTK Rust binding for creating a simple Hello World application.
-
-## Tutorials
-
-[**gtk-rs**](https://gtk-rs.org/) website lists various [tutorials](https://gtk-rs.org/docs-src/tutorial/) 
that range from introduction to the usage of Gtk-rs crates and much more. An introduction to building GUI 
application with Rust and GTK 4 is also available in the form of a 
[book](https://gtk-rs.org/gtk4-rs/git/book/). If you want more tutorials please refer to the 
[FAQ](https://gtk-rs.org/docs-src/faq) page on the gtk-rs website.
-
-## Contribute
-
-If you are interested in contributing to the gtk-rs binding project, you can get a head start by reading the 
instructions on how to get started for contributing to gtk-rs 
[here](https://github.com/gtk-rs/gtk4-rs#contribute).
-
-If you want to get in touch with the original source files, you can visit the project's [git 
repository](https://github.com/gtk-rs/gtk4-rs) on GitHub.
-
 ## See More
 
 * Project: [https://github.com/gtk-rs/gtk4-rs](https://github.com/gtk-rs/gtk4-rs)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]