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

error compiling samples, greeter, casting to LibGtk::Widget* #14

Closed
megatux opened this issue Nov 15, 2017 · 0 comments
Closed

error compiling samples, greeter, casting to LibGtk::Widget* #14

megatux opened this issue Nov 15, 2017 · 0 comments

Comments

@megatux
Copy link

megatux commented Nov 15, 2017

crystal build samples/greeter.cr 
Error in samples/greeter.cr:27: instantiating 'greet(Gtk::Button+, Gtk::Window, Gtk::Label, Gtk::Entry)'

  greet button, info, info_text, name
  ^~~~~

in samples/greeter.cr:12: instantiating 'Gtk::Button+#sensitive=(Bool)'

  button.sensitive = false
         ^~~~~~~~~

in src/generated/gtk/widget.cr:1354: can't cast (Pointer(LibGtk::Button) | Pointer(LibGtk::CheckButton) | Pointer(LibGtk::ColorButton) | Pointer(LibGtk::FontButton) | Pointer(LibGtk::LinkButton) | Pointer(LibGtk::LockButton) | Pointer(LibGtk::MenuButton) | Pointer(LibGtk::ModelButton) | Pointer(LibGtk::RadioButton) | Pointer(LibGtk::ScaleButton) | Pointer(LibGtk::ToggleButton) | Pointer(LibGtk::VolumeButton)) to Pointer(LibGtk::Widget)

      LibGtk.widget_set_sensitive(to_unsafe.as(LibGtk::Widget*), sensitive)
                                  ^

libgtk3 version: 3.18.9-1ubuntu3.3
Crystal version 0.23.1 [e2a1389e8] (2017-07-13) LLVM 3.8.1

@jhass jhass closed this as completed in 96a833a Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant