Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

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

Open
marmistrz opened this issue Jun 11, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation gtk

Comments

@marmistrz
Copy link

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
Copy link
Member

sdroege commented Jun 11, 2020

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
Copy link
Member

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

@bilelmoussaoui
Copy link
Member

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?

@bilelmoussaoui bilelmoussaoui transferred this issue from gtk-rs/gtk Nov 10, 2020
@sdroege sdroege added the documentation Improvements or additions to documentation label Nov 10, 2020
elmarco pushed a commit to elmarco/gtk-rs that referenced this issue Feb 10, 2021
* port text_viewer from gtk-rs/examples4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation gtk
Projects
None yet
Development

No branches or pull requests

4 participants