Can not create an instance of CarouselIndicatorDots
If libhandy::CarouselIndicatorDots::new() is called, gtk shows a warning:
Gtk-WARNING **: 19:36:35.309: A floating object was finalized. This means that someone called g_object_unref() on an object that had only a floating reference; the initial floating reference is not owned by anyone and must be removed with g_object_ref_sink().
Now, if I try to use the widget (for example add it to a gtk::Box) gtk shows other errors:
GLib-GObject-WARNING **: 19:41:48.480: instance with invalid (NULL) class pointer GLib-GObject-CRITICAL **: 19:41:48.480: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed GLib-GObject-CRITICAL **: 19:41:48.480: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
In the end the widget is not added, or modified in any way.
How to reproduce:
- use gtk-rs 0.9.2 and latest libhandy-rs from this repo
- call libhandy::CarouselIndicatorDots::new()
- try to add the indicator to a box
Expected behavior:
- the indicator is created successfully
- the indicator is being added to the box
Actual behavior:
- the creation of the indicator fails (see warnings)
- the widget can not be used further
I have libhandy 1.2.0 as well as libhandy0 0.0.13 and gtk 1.3 installed. Rust is at 1.51
Edit: formatting