Skip to content

Reference can't be toggled #1448

@badcel

Description

@badcel

Here is an example https://github.com/tarachom/TreeExpanderTest

Everything works fine as long as the collection is small.

As soon as the collection grows, the program crashes. I need to know how to block the repeated execution of the Gio.ListModel? CreateFunc(GObject.Object item) function until the previous CreateFunc call is completed. That is, the user has opened a branch and cannot close or open another one while CreateFunc is running

screen-recording-2026-01-16-204845_80fi8Zq0.mp4

Originally posted by @tarachom in #1447 (comment)

  • Any new instance (ref count = 1) inside a callback with transferownership full which is returned must get an additional ref.
  • Check if out parameters are supported. They might need this, too
  • write Unit Test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions