Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit f825c6c

Browse files
committed
gtk: Use u32 as underlying type for the stock-size property of CellRendererPixbuf
Fixes #717
1 parent 31b07b7 commit f825c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gtk/src/cell_renderer_pixbuf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ pub trait CellRendererPixbufExtManual: 'static {
1414

1515
impl<O: IsA<CellRendererPixbuf> + IsA<glib::object::Object>> CellRendererPixbufExtManual for O {
1616
fn property_stock_size(&self) -> IconSize {
17-
unsafe { from_glib(self.property::<i32>("stock-size")) }
17+
unsafe { from_glib(self.property::<u32>("stock-size") as i32) }
1818
}
1919

2020
fn set_property_stock_size(&self, stock_size: IconSize) {
21-
self.set_property("stock-size", &stock_size.into_glib());
21+
self.set_property("stock-size", stock_size.into_glib() as u32);
2222
}
2323
}

0 commit comments

Comments
 (0)