File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ fn build_ui(app: >k::Application) {
42
42
43
43
metadata_expression
44
44
. chain_property :: < Metadata > ( "title" )
45
- . chain_closure ( |args| {
45
+ . chain_closure_with_callback ( |args| {
46
46
let title: String = args[ 1 ] . get ( ) . unwrap ( ) ;
47
47
format ! ( "Title: {}" , title)
48
48
} )
49
49
. bind ( & title_label, "label" , gtk:: Widget :: NONE ) ;
50
50
51
51
metadata_expression
52
52
. chain_property :: < Metadata > ( "last-modified" )
53
- . chain_closure_obj :: < String > ( closure ! (
53
+ . chain_closure :: < String > ( closure ! (
54
54
|_: gtk:: ListItem , last_modified: glib:: DateTime | {
55
55
format!( "Last Modified: {}" , last_modified. format_iso8601( ) . unwrap( ) )
56
56
}
Original file line number Diff line number Diff line change @@ -161,8 +161,9 @@ impl Expression {
161
161
}
162
162
163
163
// rustdoc-stripper-ignore-next
164
- /// Create a [`gtk::PropertyExpression`] that looks up for `property_name`
165
- /// with self as parameter. This is useful in long chains of [`gtk::Expression`]s.
164
+ /// Create a [`PropertyExpression`](crate::PropertyExpression) that looks up for
165
+ /// `property_name` with self as parameter. This is useful in long chains of
166
+ /// [`Expression`](crate::Expression)s.
166
167
pub fn chain_property < T : IsA < glib:: Object > > (
167
168
& self ,
168
169
property_name : & str ,
@@ -250,12 +251,13 @@ impl glib::value::ToValueOptional for Expression {
250
251
}
251
252
252
253
// rustdoc-stripper-ignore-next
253
- /// Trait containing convenience methods in creating [`gtk::PropertyExpression`] that
254
+ /// Trait containing convenience methods in creating
255
+ /// [`PropertyExpression`](crate::PropertyExpression) that
254
256
/// looks up a property of a [`glib::Object`].
255
257
///
256
258
/// # Example
257
259
///
258
- /// `label_expression` is a [`gtk:: Expression`] that looks up at Button's `label`
260
+ /// `label_expression` is an [`Expression`](crate::Expression) that looks up at Button's `label`
259
261
/// property.
260
262
///
261
263
/// ```no_run
You can’t perform that action at this time.
0 commit comments