Re: Missing pango constants



On Tue, 29 Jul 2003 10:26:58 -0400 (EDT), Ross McFarland wrote:

enums have some special typemap magic that allows perl to deal with
them as strings based off of their names, for instance:

  'PANGO_STRETCH_ULTRA_CONDENSED'
  'ultra-condensed' (the preferred)
  'ultra_condensed'

I see. Forget about the patch then and please consider this bug report
instead: The above magic somehow doesn't apply to PangoStyle values.

When used in a TreeView whose "style" attribute is bound to a
Glib::String column and you populate this column with "normal" or
"italic", a warning is issued:

  (odot:23383): GLib-GObject-WARNING **: unable to set property `style'
  of type `PangoStyle' from value of type `gchararray'

Sorry for the noise,
-Torsten



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