Giter Club home page Giter Club logo

Comments (7)

sdroege avatar sdroege commented on September 27, 2024

Indeed! Unfortunately the GObject property has the wrong type, so the autogenerated code is also wrong.

This would need some changes in gir to be able to opt-out of builders for specific properties. And then that specific property could be manually implemented. CC @EPashkin @antoyo

from gtk3-rs.

antoyo avatar antoyo commented on September 27, 2024

Why should it be a IconSize?
In GTK+, it is not.

from gtk3-rs.

sdroege avatar sdroege commented on September 27, 2024

Why should it be a IconSize?
In GTK+, it is not.

"Symbolic size to use for stock icon, icon set or named icon." says the docs. The symbolic size is exactly that, GtkIconSize :) The default value (4) is GTK_ICON_SIZE_BUTTON.

from gtk3-rs.

sdroege avatar sdroege commented on September 27, 2024

And it's a bug in GTK that it uses the wrong type for the property. Creating a MR for GTK4 now so it can at least be fixed there.

from gtk3-rs.

sdroege avatar sdroege commented on September 27, 2024

And it's a bug in GTK that it uses the wrong type for the property. Creating a MR for GTK4 now so it can at least be fixed there.

Already fixed there, good

from gtk3-rs.

antoyo avatar antoyo commented on September 27, 2024

So, is there anyting to fix in gir?
Or would it be fixed automatically with gtk4?

from gtk3-rs.

sdroege avatar sdroege commented on September 27, 2024

Will be fixed in gtk4, but would be nice to work around for gtk3.

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.