Re: Gnome::Canvas::Text::property_attributes() problem

Erwin Rol <[email protected]> Tue, 31 Aug 2004 10:27:45 +0200
Newsgroups gmane.comp.gnome.gnomemm
Message-ID <[email protected]>
On Mon, 2004-08-30 at 11:45, [email protected] 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