lgi-devs / lgi-devs/lgi

Implementing Interfaces with Properties

Open
#82 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
491
Forks
81
PR merge metrics
No merged PRs in 30d

Description

I'm trying to implement an Interface that has a property, I checked in the examples and tests but this seems to be missing from them.

The API I'm using is self._class.override_property() but I can't seem to figure out what the arguments should be, I keep getting an error along the lines of:
bad argument #2 to 'override_property' (GObject.ObjectClass expected, got table))

Is this just something missing in the bindings or am I missing the magic parameter?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the examples and tests for interface implementations, then inspect the self._class.override_property() entry point and its expected arguments. Determine whether interface properties are unsupported or whether the reported argument error reflects incorrect usage; done means the supported behavior is demonstrated by a passing example or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.