gtk-rs-core
gtk-rs-core copied to clipboard
Rust bindings for GNOME libraries
At the moment, Gir doesn't seem to be able to generate the async constructors for `DBusObjectManagerClient`, but the blocking versions should work anyway...
When using the `glib_wrapper!` macro for subclasses there is currently no compile-time check for the interfaces/classes that are listed. At runtime it would nonetheless panic in (I hope) all cases...
https://github.com/gtk-rs/cairo/pull/257 added bindings for “user data” owned by cairo objects. Each user data entry has a destructor function pointer that cairo calls when the object is destroyed. This helps solve...
Much nicer to use if your strings are actual `String`. Same thing applies for other `&[&T]` we might have in API somewhere as with `AsRef` both `&[T]` and `&[&T]` would...
Running `cargo test` gives ``` Running tests/abi.rs (target/debug/deps/abi-46b59376a247bea1) running 2 tests In file included from tests/layout.c:5: tests/manual.h:3:10: fatal error: gio/gdesktopappinfo.h: No such file or directory 3 | #include | ^~~~~~~~~~~~~~~~~~~~~~~...
Each instance of `ListStore` and `ListModel` works on a concrete and fixed item type. Currently this is handled by checking and passing around a glib `Type` value. In Rust this...
Or more generally, "How gtk memory management works." The most relevant write up as of now is: [`glib_wrapper!` docs](https://gtk-rs.org/gtk-rs-core/git/docs/glib/macro.wrapper.html) The most important parts that are missing: 1. What are the...
gio `test_path` test fails on Windows, because it ends up comparing the "shortened" `C:\\Users\\RUNNER~1` with the full one. In https://github.com/gtk-rs/gtk-rs/pull/256/ I disabled that assertion, but a real fix would be...
There seems to be missing all those methods for windows. Probably because they are not part of the gir on linux - [ ] `g_win32_check_windows_version ()` - [ ] `g_win32_get_command_line ...
```rust glib::GString::from("test\0"); ``` > thread 'main' panicked at 'CString::new failed: NulError(4, [116, 101, 115, 116, 0])' Not surprising, but can we do something about it? I was thinking about dropping...