lgi-devs / lgi-devs/lgi

How to emit signals on an object

Open
#281 26 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

Does LGI support emitting existing signals on an object? I have an object type that has two signals associated with it according to the result of GObject.signal_list_ids(), but I do not know how to emit those signals on an instance of the object. I have tried calling obj:on_<signal>() but just get an error saying no 'on_<signal>'.

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 checking the LGI object and signal API around GObject.signal_list_ids() and the attempted obj:on_() call. Determine whether existing signals can be emitted on an object, then document the supported invocation or clarify the limitation and expected error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
api
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.