masneyb / gftp

gFTP is a free multithreaded file transfer client for *NIX based machines. 56 language translations available.
http://www.gftp.org
MIT License
116 stars 21 forks source link

Render the LICENSE in the Help->About->License dialog #168

Closed sedwards closed 1 year ago

sedwards commented 1 year ago

gtk_about_dialog_set_license behaves slightly differently than gtk_about_dialog_set_authors, because of course it does.

wdlkmpx commented 1 year ago

I was of thinking, I should get the file size first (with ftell SEEK_END or stat) but my fingers refused to type more chars, so a fixed buffer size was thrown into the mix

But it's to possible to use g_file_get_contents() instead, I've used it in the past, but memories fade https://developer-old.gnome.org/glib/stable/glib-File-Utilities.html

See commit https://github.com/masneyb/gftp/commit/c48198cb0bbf76417e13dcf9d62cff9cdab0526a