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



On Mon, 2004-08-30 at 11:45, _janus_ katamail com wrote:
> 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;

Where is attribtext allocated ?

> gunichar x;
> Glib::ustring markedutext = "<i>test</i>", s;
> Pango::AttrList palx(markeduptext, 0, s, x);
> attribtext->property_text() = s;

When attribtext was not allocated , aren't you using a random pointer
here ?

> attribtext->property_attributes() = palx; 
> 

- Erwin





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