Skip to content

How to find out keyword arguments to (make <Type> ...)? #118

@ZelphirKaltstahl

Description

@ZelphirKaltstahl

I would like to know a way to find out the names of keyword arguments of a call like:

(make <GtkApplication> ...)

Not for that one specifically, but a general method to find out about the arguments. For example I tried to create a GMenuItem instance:

(gi:make <GMenuItem>
               ;; #:text "test"
               ;; #:title "test"
               ;; #:label "Exit"
               #|#:label "Exit" #:translatable "yes" #:action "app.exit"|#)

But none of those works. I always get the error about ERROR: In procedure %make-gobject: In procedure %make-gobject: unknown object parameter. Even though https://docs.gtk.org/gio/ctor.MenuItem.new.html would seem to indicate, that the keyword argument should be #:label.

What is a good general method for finding out what I need to and what I can specify as keyword arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions