Re: Creating Gdk::Pixbuf from string data



2013-01-15 12:11, Glus Xof skrev:
2013/1/15 Kjell Ahlstedt <kjell ahlstedt bredband net>:
Unfortunately, it won't work. When I tested to_string() on a Gdk::Pixbuf, it
returned an empty string.
Yes, I see. For me, it returns an empty string also...

I agree that the documentation is unclear. I checked the source code of the
underlying C classes, GdkPixbuf and GIcon.
GdkPixbuf implements the GIcon interface, but it only implements part of the
interface. It does not implement the virtual functions to_tokens() and
from_tokens(), and therefore a GdkPixbuf can't be serialized to a string.
Nor can it be created from a string.

Kjell
Thanks a lot !... but in this case, must we wait ??

Anyone could say anymore ??

Should it be necessary to open a new bug to request this feature ??


You don't have to open a new bug. Such a gdk-pixbuf bug was filed 3 months ago:
https://bugzilla.gnome.org/show_bug.cgi?id=686201

You just have to wait and hope that it will be implemented in gdk-pixbuf, and that the new function will then be wrapped in gtkmm.

Kjell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]