jhass / crystal-gobject

gobject-introspection for Crystal
BSD 3-Clause "New" or "Revised" License
127 stars 13 forks source link

add GObject::Type::UTF8=16 for using with GObject::Value.new in Gtk::… #23

Closed viachpaliy closed 5 years ago

viachpaliy commented 5 years ago

…TextBuffer.text and etc. GObject::Type::UTF8=GObject::Type::String. One of them must delete ( if it possible). Add simple example for fun with css styling.

jhass commented 5 years ago

I'm not sure I follow. Could you expand a bit?

viachpaliy commented 5 years ago

GObject::Type::UTF8 is used in various methods of Gtk classes that return string parameter values. In GObject::Type enum (/src/g_object/type.cr) this value is not defined. Instead, there is GObject::Type::STRING.It is used only in one file - src/g_object/value.cr