gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

No bindings for the g_win32 methods

Open nacho opened this issue 3 years ago • 5 comments

There seems to be missing all those methods for windows. Probably because they are not part of the gir on linux

  • [ ] g_win32_check_windows_version ()
  • [ ] g_win32_get_command_line ()
  • [ ] g_win32_error_message ()
  • [ ] g_win32_getlocale ()
  • [ ] g_win32_get_package_installation_directory ()
  • [x] g_win32_get_package_installation_directory_of_module ()
  • [ ] g_win32_get_package_installation_subdirectory ()
  • [ ] g_win32_get_windows_version ()
  • [ ] g_win32_locale_filename_from_utf8 ()

Details at https://developer.gnome.org/glib/stable/glib-Windows-Compatibility-Functions.html

nacho avatar May 13 '21 16:05 nacho

Some are there but yes, many are missing :) You'd have to add them manually like the ones that already exist. Any specific ones you're missing?

sdroege avatar May 13 '21 16:05 sdroege

The one that I currently need is g_win32_get_package_installation_directory_of_module. I made a quick git grep in the repo and I could not find any g_win32 method.

nacho avatar May 14 '21 06:05 nacho

gio/src/win32_input_stream.rs for example.

sdroege avatar May 14 '21 07:05 sdroege

I guess there's more to fix here.

sdroege avatar May 23 '21 08:05 sdroege

I updated the issue and added a list of the functions based on GLib docs which I linked in the original issue as well

bilelmoussaoui avatar Jul 18 '21 21:07 bilelmoussaoui

Can be closed now

bilelmoussaoui avatar Mar 14 '23 20:03 bilelmoussaoui

That were all?

sdroege avatar Mar 14 '23 20:03 sdroege