gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

Use example for gtk::Dialog should contain a Rust example rather than a C example #130

Open marmistrz opened 4 years ago

marmistrz commented 4 years ago

https://gtk-rs.org/docs/gtk/struct.Dialog.html currently contains a C example. The same holds for http://gtk-rs.org/docs/gtk/struct.MessageDialog.html

sdroege commented 4 years ago

The docs are autogenerated from the C documentation, which unfortunately contains C examples. I don't think we can solve that in any nice way currently, @GuillaumeGomez ?

See https://github.com/gtk-rs/examples/ for some examples, some of which also use a dialog.

GuillaumeGomez commented 4 years ago

No, it's a discussion I had with people in GNOME and the outcome is: it's complicated.

bilelmoussaoui commented 3 years ago

I have heard that gtk is switching it's doc to markdown, maybe if they specify the language there we could have a separate rust docs with just the code snippets somehow?