Re: Gtk::CellRendererPixbuf: unable to set property 'surface'




Oh well, thanks for your reply.

Filed https://bugzilla.gnome.org/show_bug.cgi?id=788513

Thanks,
Alexander


On Wed, 2017-10-04 at 14:49 +0200, Kjell Ahlstedt wrote:
Den 2017-10-04 kl. 00:13, skrev Alexander Shaduri:
Hi,

I'm trying to set a "surface" property on Gtk::CellRendererPixbuf
and getting a gtk error:

"unable to set property 'surface' of type 'CairoSurface' from value of type
'glibmm__CustomBoxed_N5Cairo6RefPtrINS_7SurfaceEEE'"

 The following comment comes from gtkmm/gdk/src/drawingcontext.hg:
  // A wrapped property_clip() would require a template specialization
  // Glib::Value<Cairo::RefPtr<T>>.
  //_WRAP_PROPERTY("clip", ::Cairo::RefPtr< ::Cairo::Region>)

Compare with
  _WRAP_PROPERTY("surface", ::Cairo::RefPtr< ::Cairo::Surface>)
from gtkmm/gtk/src/cellrendererpixbuf.hg.
Not much chance that CellRendererPixbuf::property_surface() will work. You can file a bug report in 
Bugzilla.

Kjell


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