Code Monkey home page Code Monkey logo

Comments (15)

sdroege avatar sdroege commented on August 27, 2024 2

https://bugzilla.gnome.org/show_bug.cgi?id=784021
IMHO we should just patch the Pango .gir file instead of adding configuration. Configuration only makes sense for things that can't be expressed by the .gir file.

from pango.

GuillaumeGomez avatar GuillaumeGomez commented on August 27, 2024 1

Then let's close it. :)

from pango.

GuillaumeGomez avatar GuillaumeGomez commented on August 27, 2024

It's part of the things we need to improve. However I was certain that we removed the next argument if it was an integer and the current one was a string. Did I miss something @EPashkin?

from pango.

mjkillough avatar mjkillough commented on August 27, 2024

I can't see any code in GIR that would do that, but I might be looking for the wrong thing.

I can see that CssProvider.load_from_data() is implemented manually in order to hide its length parameter. Would it be appropriate to do something similar here, or is a generic solution in GIR preferable? I'd be happy to have a go at fixing this in either case.

from pango.

EPashkin avatar EPashkin commented on August 27, 2024

It still under construction gtk-rs/gir#376
I think we accept manual version until issue fixed.

from pango.

mjkillough avatar mjkillough commented on August 27, 2024

I see gtk-rs/gir#376 is in progress, so I think it's fine to wait for it to be done automatically.

from pango.

sdroege avatar sdroege commented on August 27, 2024

This is not covered unfortunately because the array-length annotation is missing in Pango. Someone should file a bug in Bugzilla to get this added, or I'll do it if nobody else is faster.

from pango.

EPashkin avatar EPashkin commented on August 27, 2024

Maybe we need add config override for array-length?

from pango.

sdroege avatar sdroege commented on August 27, 2024

That would make sense (and is relatively simple), yes. Nonetheless all these things should be reported to the respective C libraries.

from pango.

EPashkin avatar EPashkin commented on August 27, 2024

Currently we strong against patching .gir files as it will be replaced by next update.
Or we need patching mechanism that works good with xml files.

from pango.

sdroege avatar sdroege commented on August 27, 2024

Next upstream release would ideally have these changes so no patching would be needed after an update.

from pango.

EPashkin avatar EPashkin commented on August 27, 2024

Maybe but I don't want look change in big xml and think, fixed it actually or not :(

from pango.

sdroege avatar sdroege commented on August 27, 2024

The changes between versions are not actually very big usually, unless you skip many major versions. When doing GStreamer releases, I usually go through the diff of the .gir files and it was a manageable task so far. Usually there are not many changes/additions to already existing types.

Problem I see with a configuration is that it "makes lazy", and then the annotations are never fixed in the C libraries and every binding ships its own configuration around for these bugs.

from pango.

sdroege avatar sdroege commented on August 27, 2024

See gtk-rs/gir#387 (comment) . Needs manual bindings for these functions that take a string+length, or return a string+length

from pango.

mjkillough avatar mjkillough commented on August 27, 2024

🎉 It looks like this is fixed in the latest pango release: LayoutExt::set_text(&str)

from pango.

Related Issues (12)

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.