Re: [gnomemm] Gnome::Canvas::Text::property_attributes() problem



> Hi everybody,
>
> I'm using gtkmm 2.2.9, gnomecanvasmm 2.0.1 and pangomm 2.2.9, here is a
> piece of my code:
>
> Gnome::Canvas::Text *attribtext;
> gunichar x;
> Glib::ustring markedutext = "<i>test</i>", s;
> Pango::AttrList palx(markeduptext, 0, s, x);
> attribtext->property_text() = s;
> attribtext->property_attributes() = palx;
>
> The problem is that
> attribtext->property_attributes() = palx;
> causes randomly segmentation faults.
> Am i doing any mistake or is it a bug?
> Thx,

A simple test case might allow valgrind or gdb to show the problem.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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