Skip to content

Commit 6ef52b5

Browse files
committed
Fix broken crate links in docs
1 parent b40e329 commit 6ef52b5

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

gdk4/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl AsRef<Event> for Event {
281281
}
282282

283283
// rustdoc-stripper-ignore-next
284-
/// A common trait implemented by the various [`gdk::Event`] types.
284+
/// A common trait implemented by the various [`gdk::Event`](crate::Event) types.
285285
///
286286
/// # Safety
287287
///

gsk4/src/render_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl RenderNode {
140140
}
141141

142142
// rustdoc-stripper-ignore-next
143-
/// A common trait implemented by the various [`gsk::RenderNode`] types.
143+
/// A common trait implemented by the various [`gsk::RenderNode`](crate::RenderNode) types.
144144
///
145145
/// # Safety
146146
///

gtk4/src/expression.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl AsRef<Expression> for Expression {
3131
}
3232

3333
// rustdoc-stripper-ignore-next
34-
/// A common trait implemented by the various [`gtk::Expression`] types.
34+
/// A common trait implemented by the various [`Expression`](crate::Expression) types.
3535
///
3636
/// # Safety
3737
///
@@ -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,
@@ -171,8 +172,8 @@ impl Expression {
171172
}
172173

173174
// rustdoc-stripper-ignore-next
174-
/// Create a [`gtk::ClosureExpression`] with self as a parameter. This is useful in long
175-
/// chains of [`gtk::Expression`]s.
175+
/// Create a [`ClosureExpression`](crate::ClosureExpression) with self as the second parameter.
176+
/// This is useful in long chains of [`Expression`](crate::Expression)s.
176177
pub fn chain_closure<F, R>(&self, f: F) -> crate::ClosureExpression
177178
where
178179
F: Fn(&[glib::Value]) -> R + 'static,
@@ -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)