[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,
Marcello

________________________________________________________________________
Cerchi un laboratorio fotografico aperto 24 ore su 24?
Stampa le tue foto digitali su Kataweb e le ricevi a domicilio in 48 ore.
http://www.kataweb.it/foto





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