New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixbuf is broken in 3.1.1 and 3.1.2 #115

Closed
SingingBush opened this Issue May 19, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@SingingBush

SingingBush commented May 19, 2015

it used to be that getPixels() in gdkpixbuf/Pixbuf.d returned a pointer. Even the docs for the method say it returns a pointer but yet the current code is returning a string:

public string getPixels()
{
    return Str.toString(gdk_pixbuf_get_pixels(gdkPixbuf));
}

that can't be right. Also the same with getPixelsWithLength() is now returning string instead of char array.

Is there something wrong with the way that GTK is getting wrapped?

@MikeWey MikeWey added the Bug label May 20, 2015

@MikeWey MikeWey self-assigned this May 20, 2015

@MikeWey

This comment has been minimized.

Member

MikeWey commented May 20, 2015

The wrapper infers is as a sting while that isn't the case.

MikeWey added a commit that referenced this issue May 21, 2015

Don't treat guchar* as string.
Partial fix for #115.
gdkpixbuf.Pixbuf.getData and gtk.SelectionData.getData still return an
array instead of the pointer.
@MikeWey

This comment has been minimized.

Member

MikeWey commented May 25, 2015

The last two functions are fixed in commit: e17406f

@MikeWey MikeWey closed this May 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment