Giter VIP home page Giter VIP logo

Comments (9)

sdroege avatar sdroege commented on August 24, 2024

Still a problem

from gtk3-rs.

bilelmoussaoui avatar bilelmoussaoui commented on August 24, 2024

No idea where it gets the MiscExt trait from https://gtk-rs.org/gtk-rs/gtk/struct.Label.html#implements

from gtk3-rs.

sdroege avatar sdroege commented on August 24, 2024

Well, GtkLabel is a subclass of GtkMisc, but that has no API and as such no MiscExt trait

from gtk3-rs.

bilelmoussaoui avatar bilelmoussaoui commented on August 24, 2024

Well, GtkLabel is a subclass of GtkMisc, but that has no API and as such no MiscExt trait

Interesting. I guess we need to check the number of functions there's on a trait before adding it to the list of "implements"

from gtk3-rs.

sdroege avatar sdroege commented on August 24, 2024

Something like that. Check how gir decides to not create a trait at all. It's probably checking for functions, signals and properties, and if any of them are actually to be generated.

from gtk3-rs.

bilelmoussaoui avatar bilelmoussaoui commented on August 24, 2024

I think gir isn't aware of such thing yet, as it still generates empty traits https://github.com/gtk-rs/gtk4-rs/blob/master/gtk4/src/auto/constraint_target.rs#L16-L20

from gtk3-rs.

bilelmoussaoui avatar bilelmoussaoui commented on August 24, 2024

Seems to be correctly generated now: https://gtk-rs.org/gtk-rs/git/docs/gtk/struct.Label.html#implements. Although it still contains the MiscExt trait which doesn't get generated, even as en empty trait.

from gtk3-rs.

sdroege avatar sdroege commented on August 24, 2024

So closeable then?

from gtk3-rs.

bilelmoussaoui avatar bilelmoussaoui commented on August 24, 2024

@sdroege yes and with the new docs, those broken traits are not clickable at all. see https://gtk-rs.org/gtk3-rs/git/docs/gtk/struct.Label.html#implements

the MiscExt is a gir issue though

from gtk3-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.