[gnomemm] Set italic font
- From: "_janus_ katamail com" <_janus_ katamail com>
- To: gnomemm-list gnome org
- Subject: [gnomemm] Set italic font
- Date: Tue, 20 Jul 2004 17:29:30 +0000
Hi all,
i have a Gnome::Canvas::Text *t and i'd like to set the font style in italic. For doing this i have a function:
void OGClass::setItalic(bool res)
{
PangoStyle s;
if(res) s = PANGO_STYLE_ITALIC;
else s = PANGO_STYLE_NORMAL;
t->property_style_set() = true;
t->property_style() = s;
}
The compiler gives no errors, but at runtime i receive this message
GLib-GObject-WARNING **: unable to set property `style' of type `PangoStyle' from value of type `glibmm__CustomBoxed_10PangoStyle'
and nothing happen. Any idea?
Thx,
Mark
________________________________________________________________________
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]