diff --git a/examples/expressions/main.rs b/examples/expressions/main.rs index 646d8e7b912b..49410c48e38e 100644 --- a/examples/expressions/main.rs +++ b/examples/expressions/main.rs @@ -42,7 +42,7 @@ fn build_ui(app: >k::Application) { metadata_expression .chain_property::("title") - .chain_closure(|args| { + .chain_closure_with_callback(|args| { let title: String = args[1].get().unwrap(); format!("Title: {}", title) }) @@ -50,7 +50,7 @@ fn build_ui(app: >k::Application) { metadata_expression .chain_property::("last-modified") - .chain_closure_obj::(closure!( + .chain_closure::(closure!( |_: gtk::ListItem, last_modified: glib::DateTime| { format!("Last Modified: {}", last_modified.format_iso8601().unwrap()) } diff --git a/gtk4/src/expression.rs b/gtk4/src/expression.rs index 20d789b4f015..952a8f75d455 100644 --- a/gtk4/src/expression.rs +++ b/gtk4/src/expression.rs @@ -161,8 +161,9 @@ impl Expression { } // rustdoc-stripper-ignore-next - /// Create a [`gtk::PropertyExpression`] that looks up for `property_name` - /// with self as parameter. This is useful in long chains of [`gtk::Expression`]s. + /// Create a [`PropertyExpression`](crate::PropertyExpression) that looks up for + /// `property_name` with self as parameter. This is useful in long chains of + /// [`Expression`](crate::Expression)s. pub fn chain_property>( &self, property_name: &str, @@ -250,12 +251,13 @@ impl glib::value::ToValueOptional for Expression { } // rustdoc-stripper-ignore-next -/// Trait containing convenience methods in creating [`gtk::PropertyExpression`] that +/// Trait containing convenience methods in creating +/// [`PropertyExpression`](crate::PropertyExpression) that /// looks up a property of a [`glib::Object`]. /// /// # Example /// -/// `label_expression` is a [`gtk::Expression`] that looks up at Button's `label` +/// `label_expression` is an [`Expression`](crate::Expression) that looks up at Button's `label` /// property. /// /// ```no_run