Closed Cogitri closed 3 years ago
It needs assertions = "skip"
set on the gir file I guess. Or maybe better make it return Result<(), BoolError>
and check that !gtk::is_initialized()
before calling gtk_disable_setlocale
.
cc @sdroege, the same issue affects gtk3.
Yeah there will be more such functions. Someone who actually knows GTK needs to go over those at some point :)
@Cogitri want to send a patch for this one? :)
Sure, I can go through those and disable the assert. Not sure if a Result
When calling gtk::disable_setlocale() after gtk::init(), GTK prints the following warning:
However, when calling it before gtk::init() gtk-rs panics with: