Re: Glib::IO
- From: Jeremy Volkening <jdv base2bio com>
- To: "max augsburg gmx de" <max augsburg gmx de>
- Cc: gtk-perl-list gnome org
- Subject: Re: Glib::IO
- Date: Wed, 1 Jun 2016 19:47:20 -0500
Max,
I just wondered, why in Python you
don't have to convert the byte digits in a byte string or to decode
the bytestring in UTF-8 format (see for example:
https://developer.gnome.org/gnome-devel-demos/stable/filechooserdialog.py.html.en)
But probably they have modified the Gtk3::TextBuffer->set_buffer()
method (I think the Gtk3::TextBuffer works always in UTF-8).
They probably do some sort of byte array to string conversion in their
bindings too. As far as the validation, though, I think it's typically more
appropriate to do that sort of thing at the application level. It should be up
to the application author to decide how to do this. For instance, vim lets
me open and view a PNG without complaint - it's just not very useful. The python
example you linked to doesn't do any validation, probably for
simplicity - I doubt they'd have made any such changes at the class
level, though, or else would have subclassed TextView first.
Collaborating on github is a very good idea, although I am still not
very familiar with github. On the other hand for me it is a great
enrichment to discuss my succested proposals here with more
experienced programmers. But perhaps this could be annoying for
people that are not interested in the Glib::IO module ;-)
This list seems like a good place to have those discussions. Github (or the like)
would just provide a way to organize the intermediate work, rather than
sending every change as an individual patch to the list.
Regards,
Jeremy
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]