What gtype is a Pango attribute in a liststore

Hi
I am trying to set wrap-mode at the liststore->new level

So I have a column type of ‘Glib::String’ ( G_TYPE_STRING).
Then I attempt to have
the property type ‘wrap-type’ set from this column with value of word|char etc

however I get an error
GLib-GObject-WARNING **: unable to set property ‘wrap-mode’ of type ‘PangoWrapMode’ from value of type ‘gchararray’

This happens with any property with a pango type.

So what glibtype should I be using?

PANGO_TYPE_WRAP_MODE. The GObject’s type is always <NAMESPACE>_TYPE_<OBJECT_NAME_IN_UPPERCASE>.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.