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

Commit c1704d6

Browse files
committed
gtk: Rename property_stock_size() to stock_size() for consistency
1 parent f825c6c commit c1704d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gtk/src/cell_renderer_pixbuf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ use glib::translate::*;
77

88
pub trait CellRendererPixbufExtManual: 'static {
99
#[doc(alias = "get_property_stock_size")]
10-
fn property_stock_size(&self) -> IconSize;
10+
fn stock_size(&self) -> IconSize;
1111

12-
fn set_property_stock_size(&self, stock_size: IconSize);
12+
fn set_stock_size(&self, stock_size: IconSize);
1313
}
1414

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

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

0 commit comments

Comments
 (0)