Giter Club home page Giter Club logo

Comments (7)

sdroege avatar sdroege commented on July 20, 2024

The reason why it's not generated is because we have no bindings yet for GVariantDict.

from gio.

sdroege avatar sdroege commented on July 20, 2024

If you do a Application subclass you can do the same via the handle_local_options virtual method btw.

from gio.

YaLTeR avatar YaLTeR commented on July 20, 2024

I looked into it, but it seems that I cannot use GIO's option parsing machinery (add_main_option, etc.) if I do that then.

from gio.

sdroege avatar sdroege commented on July 20, 2024

Why not? That should work normally

from gio.

YaLTeR avatar YaLTeR commented on July 20, 2024

As far as I can see, the handle_local_options method accepts the raw command-line, and the actual parsing happens in GIO Application's implementation of that method. It parses the command-line into a GVariantDict and then passes it to the signal handler.

from gio.

sdroege avatar sdroege commented on July 20, 2024

local_command_line is called before, handle_local_options afterwards. That's the same as with the signals. But it seems we don't actually have handle_local_options there either, for the same reason.

from gio.

YaLTeR avatar YaLTeR commented on July 20, 2024

Oh, right, I was looking at local_command_line. Well, I guess it boils down to GVariantDict support.

from gio.

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.