TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Gtk-rs: The huge and long awaited release is finally here

147 pointsby trextrexover 7 years ago

7 comments

mslaover 7 years ago
From the homepage:<p>&gt; Rust bindings for GTK+ 3, Cairo, GtkSourceView and other GLib-compatible libraries<p><a href="http:&#x2F;&#x2F;gtk-rs.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;gtk-rs.org&#x2F;</a>
anfractuosityover 7 years ago
Congratulations, keep up the good work!<p>I noticed there seems to be a webbrowser widget too, which I&#x27;ll have to play with.<p>&#x27;Added PDF as a target Surface&#x27; that sounds very useful too!<p>I&#x27;m just wondering would it be possible to make the gtk widgets copyable, as wouldn&#x27;t that mean you could remove the clone! macro calls, or am I mistaken there?
ridiculous_fishover 7 years ago
How does a pointer-soup toolkit like GTK work with Rust? For example, this code:<p><pre><code> let button = Button::new_with_label(&quot;Click me!&quot;); window.add(&amp;button); button.connect_clicked(|_| { println!(&quot;Clicked!&quot;); }); </code></pre> We just mutated the button (connect_clicked) while the window holds a reference to it. Isn&#x27;t that disallowed in Rust? How do the GTK types interoperate with Rust ownership?
评论 #15096106 未加载
Scarbuttover 7 years ago
Is Gtk bundle into the final executable?
评论 #15094203 未加载
josteinkover 7 years ago
Looking at the change log, I see they generate a lot of code with a custom tool called &quot;gir&quot;:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gtk-rs&#x2F;gir" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gtk-rs&#x2F;gir</a><p>Is it an acronym for something, or is just someone on the team a closet Invader Zim fan? :)
评论 #15096624 未加载
评论 #15096576 未加载
senatorobamaover 7 years ago
Can we come up with something other than GObject&#x2F;GTK? :(. I want a cross platform GUI that looks native.
gigatexalover 7 years ago
Kudos to the collaborators.<p>It seems everything these days is going either Rust or Go.
评论 #15096944 未加载
评论 #15113122 未加载
评论 #15097553 未加载