Skip to content

Type of data parameter for GdkPixbuf.Pixbuf.new_from_data is incorrect #261

@some00

Description

@some00

Documentation says it should be bytes, but it's marked as GLib.Bytes in the stubs.
I tried passing GLib.Bytes, but then I received the following error:

File ".../gi/overrides/GdkPixbuf.py", line 53, in new_from_data
    data = GLib.Bytes.new(data)
TypeError: Must be sequence, not Bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions