Skip to content

Commit d3a859b

Browse files
jf2048bilelmoussaoui
authored andcommitted
Fix broken crate links in docs
1 parent 9760c25 commit d3a859b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

examples/expressions/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ fn build_ui(app: &gtk::Application) {
4242

4343
metadata_expression
4444
.chain_property::<Metadata>("title")
45-
.chain_closure(|args| {
45+
.chain_closure_with_callback(|args| {
4646
let title: String = args[1].get().unwrap();
4747
format!("Title: {}", title)
4848
})
4949
.bind(&title_label, "label", gtk::Widget::NONE);
5050

5151
metadata_expression
5252
.chain_property::<Metadata>("last-modified")
53-
.chain_closure_obj::<String>(closure!(
53+
.chain_closure::<String>(closure!(
5454
|_: gtk::ListItem, last_modified: glib::DateTime| {
5555
format!("Last Modified: {}", last_modified.format_iso8601().unwrap())
5656
}

gtk4/src/expression.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ impl Expression {
161161
}
162162

163163
// 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.
166167
pub fn chain_property<T: IsA<glib::Object>>(
167168
&self,
168169
property_name: &str,
@@ -250,12 +251,13 @@ impl glib::value::ToValueOptional for Expression {
250251
}
251252

252253
// 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
254256
/// looks up a property of a [`glib::Object`].
255257
///
256258
/// # Example
257259
///
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`
259261
/// property.
260262
///
261263
/// ```no_run

0 commit comments

Comments
 (0)