gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

[BUG] Regression in 0.15.x. CellRendererPixbufExtManual::set_property_stock_size panics #717

Closed andy128k closed 2 years ago

andy128k commented 2 years ago

Code, which worked in 0.14.x

let icon = gtk::CellRendererPixbuf::new();
icon.set_property_stock_size(gtk::IconSize::LargeToolbar);

now panics with

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BoolError { message: "property 'stock-size' of type 'GtkCellRendererPixbuf' can't be set from the given type (expected: 'guint', got: 'gint')", filename: "/home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/glib-0.15.2/src/object.rs", function: "glib::object", line: 3166 }', /home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/glib-0.15.2/src/object.rs:2125:53
sdroege commented 2 years ago

See https://github.com/gtk-rs/gtk3-rs/pull/722