gtk-rs-core
gtk-rs-core copied to clipboard
Rust bindings for GNOME libraries
The [documentation says](https://gtk-rs.org/gtk-rs-core/stable/0.17/docs/glib/object/trait.ObjectExt.html#tymethod.emit_by_name): ```rust fn emit_by_name( &self, signal_name: &str, args: &[&dyn ToValue] ) -> R ``` `TryFromClosureReturnValue` is completely unhelpful: https://gtk-rs.org/gtk-rs-core/stable/0.17/docs/glib/closure/trait.TryFromClosureReturnValue.html It's really hard to figure out that you have...
When using functions `FileExtManual::replace_contents_future` the error type does not implement `std::Error` and using the `?` operator requires mapping the error in an awkward way, one possibility is to add a...
I have this crate that can generate parsers for attributes using a derive macro. It automatically throws errors (and spelling suggestions) on invalid attributes. We can get better errors messages...
String get's converted to a `GString` internally right? Then we should also be able to convert `[Value; N]` to a `glib::ValueArray`
E.g. the following should fail ```rust #[derive(Debug, Copy, Clone, PartialEq, Eq, glib::Enum)] #[enum_type(name = "MyEnum", nullable)] ``` Only `name` is valid in that context.
> Since GLib 2.72, `GUnixSocketAddress` is available on all platforms. It requires underlying system support (such as Windows 10 with AF_UNIX) at run time. > > Before GLib 2.72, ``...
Currently, gtk-rs based application that has to handle translations makes use of gettext-rs crate. It has some disadvantages like it shipping a gettext tarball when building under windows/macos(i think) which...
C code that gets such unknown enum values might do anything. Not sure how we should handle this. Maybe: ```rust #[non_exhaustive] pub enum Foo { A, B, C, Unknown(i32), //...
Copy paste of the Matrix discussion slomo: > complicated. imho gtk::prelude should only re-export traits unnamed (pub use foo::SomeTrait as _;) so that the trait functions become available but for...
# Update My views on this topic have evolved, see the comment for an up to date version: https://github.com/gtk-rs/gtk-rs-core/issues/805#issuecomment-1288079608 Following is the initial **obsolete** comment for the record. ## Another...