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

gtk_style_context_get_property not generated #124

Closed
BrainBlasted opened this issue Aug 13, 2019 · 5 comments · May be fixed by gtk-rs/gtk#876
Closed

gtk_style_context_get_property not generated #124

BrainBlasted opened this issue Aug 13, 2019 · 5 comments · May be fixed by gtk-rs/gtk#876
Labels
enhancement New feature or request gtk
Milestone

Comments

@BrainBlasted
Copy link
Contributor

This might not be generated because it's similar to g_object_get_property? Despite the naming it does not have the same functionality. Rather, it gets the style property of the Widget. Without it widgets like Granite's avatar widget can't be implemented in Rust.

@sdroege
Copy link
Member

sdroege commented Aug 14, 2019

Unclear why they're not generated, they're explicitly ignored here https://github.com/gtk-rs/gtk/blob/master/Gir.toml#L1768-L1770. Since many years ago in gtk-rs/gtk@4e6d5db

Removing that should make them generated correctly, there's nothing complicated about those functions.

@sdroege
Copy link
Member

sdroege commented Aug 14, 2019

Do you want to provide a PR for that? Simply removing those lines from the Gir.toml and then regenerating

@BrainBlasted
Copy link
Contributor Author

BrainBlasted commented Aug 14, 2019 via email

@ArekPiekarz
Copy link
Contributor

I am also interested in this functionality instead of having to resort to unsafe workarounds in gtk-rs/gtk#949 to get information about fonts used in widgets.

ArekPiekarz referenced this issue in ArekPiekarz/rusty-git-gui Feb 2, 2020
Unfortunately due to a following bug in gtk-rs there is no safe function to get information about fonts in a widget:
https://github.com/gtk-rs/gtk/issues/874
Thus it was necessary to use some unsafe functions from lower-level gtk-sys and pango-sys.
@bilelmoussaoui bilelmoussaoui transferred this issue from gtk-rs/gtk Nov 10, 2020
@sdroege sdroege added the enhancement New feature or request label Nov 10, 2020
elmarco pushed a commit to elmarco/gtk-rs that referenced this issue Feb 10, 2021
@GuillaumeGomez GuillaumeGomez added this to the 0.14.0 milestone Apr 7, 2021
@GuillaumeGomez
Copy link
Member

It's already generated so closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request gtk
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants