gi-crystal icon indicating copy to clipboard operation
gi-crystal copied to clipboard

Tool to generate Crystal bindings for gobject-based libraries (i.e. GTK)

Results 32 gi-crystal issues
Sort by recently updated
recently updated
newest added

Trying to implement the vfunc [`measure`](https://docs.gtk.org/gtk4/vfunc.Widget.measure.html) results in a compile-time error: ``` Showing last frame. Use --error-trace for full trace. There was a problem expanding macro '_register_do_measure' Code in macro...

bug
vfunc

Closes #48 This seems to fix the issue. Newly generated code: ```crystal # Prototype of the function called to create new child models when # gtk_tree_list_row_set_expanded() is called. # #...

Taking a look at the [definition of `Gtk::TreeListModelCreateModelFunc`](https://libadwaita.geopjr.dev/docs/Gtk/TreeListModelCreateModelFunc.html): > This function can return %NULL to indicate that @item is guaranteed to be a leaf node and will never have children...

blocked

Hello, thank you for this useful project. I've pulled the new `gtk4` version `0.13.0` and tried to compile `helloworld` demo after updating the generated binding against local libraries, but compiler...

bug

Example definition of `Gtk::Widget._register_unsafe_do_measure` ```crystal private macro _register_unsafe_do_measure private def self._vfunc_unsafe_measure(%this : Pointer(Void), lib_orientation : UInt32, lib_for_size : Int32, lib_minimum : Int32, lib_natural : Int32, lib_minimum_baseline : Int32, lib_natural_baseline :...

bug

This PR allows GObject subclasses to be GC-resistant. Actually, the biggest part of this PR is allowing GObjects to be created from C (g_object_new) without fearing the GC, which requires...

Ref: https://libadwaita.geopjr.dev/docs/GObject/ToggleNotify.html The union used here (`Pointer(Void)?`) makes no sense here. Actual function: https://docs.gtk.org/gobject/callback.ToggleNotify.html

bug

Hi, I'm having some issues with JavaScriptCore bindings (https://github.com/GeopJr/JavaScriptCore.cr): - Proc For example, [`JavaScriptCore::ClassVTable#get_property=`](https://javascriptcore.geopjr.dev/JavaScriptCore/ClassVTable.html#get_property%3D%28value%3AJavaScriptCore%3A%3AClassGetPropertyFunction%29-instance-method) accepts [`JavaScriptCore::ClassGetPropertyFunction`](https://javascriptcore.geopjr.dev/JavaScriptCore/ClassGetPropertyFunction.html) (which is an alias for `Proc(JavaScriptCore::Class, JavaScriptCore::Context, Pointer(Void)?, JavaScriptCore::Value)`) generates: ```crystal def get_property=(value :...

bug

If you try to compile this branch of my project, you will get the following error. https://gitlab.gnome.org/wildeyedskies/wince/-/tree/fix-geoclue-init ``` In lib/gi-crystal/src/auto/geoclue-2.0/simple.cr:264:76 264 | LibGeoclue.gclue_simple_new(desktop_id, accuracy_level, cancellable, callback, user_data) ^------- Error: argument...

bug

For the declaration: `signal whatever(view : View?)` The generated class_init function is wrong. `View | ::Nil.g_type` must be `View.g_type` ``` def self._class_init(klass : Pointer(LibGObject::TypeClass), user_data : Pointer(Void)) : Nil LibGObject.g_signal_new("view_changed",...

bug
blocked