hugopl / gi-crystal

Tool to generate Crystal bindings for gobject-based libraries (i.e. GTK)
BSD 3-Clause "New" or "Revised" License
45 stars 3 forks source link

g_unichar must be Crystal Char, not UInt32 #128

Closed hugopl closed 11 months ago

hugopl commented 11 months ago

Gtk::TextIter have some methods that returns gunichar, the generator is translating them to UInt32 instead of Char.

    def char : UInt32
      # gtk_text_iter_get_char: (Method)
      # Returns: (transfer none)

      # C call
      _retval = LibGtk.gtk_text_iter_get_char(to_unsafe)

      # Return value handling
      _retval
    end