Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdk::FileList.new_from_array expects (Pointer(LibGio::File)), not Pointer(Pointer(Void)) #69

Open
GeopJr opened this issue Oct 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@GeopJr
Copy link
Contributor

GeopJr commented Oct 21, 2022

Example:

require "gtk4"

app = Gtk::Application.new("hello.example.com", Gio::ApplicationFlags::None)

app.activate_signal.connect do
  window = Gtk::ApplicationWindow.new(app)
  window.title = "test"
  window.set_default_size(200, 200)

  Gdk::FileList.new_from_array([
    Gio::File.new_for_path("/tmp/gtk4.cr/shard.yml"),
  ])

  window.present
end

exit(app.run)

raises:

In lib/gi-crystal/src/auto/gdk-4.0/file_list.cr:45:53

 45 | _retval = LibGdk.gdk_file_list_new_from_array(files, n_files)
                                                    ^----
Error: argument 'files' of 'LibGdk#gdk_file_list_new_from_array' must be Pointer(Pointer(LibGio::File)), not Pointer(Pointer(Void))
@hugopl hugopl added the bug Something isn't working label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants