Skip to content

Commit f6b9cfd

Browse files
committed
glib: Fix some broken doc links
1 parent 5e219f1 commit f6b9cfd

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

glib-macros/src/lib.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ pub fn closure_local(item: TokenStream) -> TokenStream {
437437
/// ValWithCustomNameAndNick,
438438
/// }
439439
/// ```
440+
///
441+
/// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/value/struct.Value.html
440442
#[proc_macro_derive(Enum, attributes(enum_type, enum_value))]
441443
#[proc_macro_error]
442444
pub fn enum_derive(input: TokenStream) -> TokenStream {
@@ -474,7 +476,7 @@ pub fn enum_derive(input: TokenStream) -> TokenStream {
474476
/// }
475477
/// ```
476478
///
477-
/// [`glib::Value`]: value/struct.Value.html
479+
/// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/value/struct.Value.html
478480
#[proc_macro_attribute]
479481
#[proc_macro_error]
480482
pub fn flags(attr: TokenStream, item: TokenStream) -> TokenStream {
@@ -501,7 +503,7 @@ pub fn flags(attr: TokenStream, item: TokenStream) -> TokenStream {
501503
/// }
502504
/// ```
503505
///
504-
/// [`ErrorDomain`]: error/trait.ErrorDomain.html
506+
/// [`ErrorDomain`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/error/trait.ErrorDomain.html
505507
#[proc_macro_derive(ErrorDomain, attributes(error_domain))]
506508
#[proc_macro_error]
507509
pub fn error_domain_derive(input: TokenStream) -> TokenStream {
@@ -524,8 +526,8 @@ pub fn error_domain_derive(input: TokenStream) -> TokenStream {
524526
/// struct MyBoxed(String);
525527
/// ```
526528
///
527-
/// [`BoxedType`]: subclass/boxed/trait.BoxedType.html
528-
/// [`glib::Value`]: value/struct.Value.html
529+
/// [`BoxedType`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/subclass/boxed/trait.BoxedType.html
530+
/// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/value/struct.Value.html
529531
#[proc_macro_derive(Boxed, attributes(boxed_nullable, boxed_type))]
530532
#[proc_macro_error]
531533
pub fn boxed_derive(input: TokenStream) -> TokenStream {
@@ -552,8 +554,8 @@ pub fn boxed_derive(input: TokenStream) -> TokenStream {
552554
/// struct MyShared(std::sync::Arc<MySharedInner>);
553555
/// ```
554556
///
555-
/// [`SharedType`]: subclass/shared/trait.SharedType.html
556-
/// [`glib::Value`]: value/struct.Value.html
557+
/// [`SharedType`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/subclass/shared/trait.SharedType.html
558+
/// [`glib::Value`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/value/struct.Value.html
557559
#[proc_macro_derive(SharedBoxed, attributes(shared_boxed_nullable, shared_boxed_type))]
558560
#[proc_macro_error]
559561
pub fn shared_boxed_derive(input: TokenStream) -> TokenStream {
@@ -590,7 +592,7 @@ pub fn shared_boxed_derive(input: TokenStream) -> TokenStream {
590592
/// }
591593
/// ```
592594
///
593-
/// [`ObjectSubclass`]: subclass/types/trait.ObjectSubclass.html
595+
/// [`ObjectSubclass`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/subclass/types/trait.ObjectSubclass.html
594596
#[proc_macro_attribute]
595597
#[proc_macro_error]
596598
pub fn object_subclass(_attr: TokenStream, item: TokenStream) -> TokenStream {
@@ -615,7 +617,7 @@ pub fn object_subclass(_attr: TokenStream, item: TokenStream) -> TokenStream {
615617
/// type Prerequisites = ();
616618
/// ```
617619
///
618-
/// [`ObjectInterface`]: interface/types/trait.ObjectInterface.html
620+
/// [`ObjectInterface`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/subclass/interface/trait.ObjectInterface.html
619621
#[proc_macro_attribute]
620622
#[proc_macro_error]
621623
pub fn object_interface(_attr: TokenStream, item: TokenStream) -> TokenStream {
@@ -683,8 +685,8 @@ pub fn object_interface(_attr: TokenStream, item: TokenStream) -> TokenStream {
683685
/// }
684686
/// ```
685687
///
686-
/// [`glib::clone::Downgrade`]: clone/trait.Downgrade.html
687-
/// [`glib::clone::Upgrade`]: clone/trait.Upgrade.html
688+
/// [`glib::clone::Downgrade`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/clone/trait.Downgrade.html
689+
/// [`glib::clone::Upgrade`]: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/clone/trait.Upgrade.html
688690
#[proc_macro_derive(Downgrade)]
689691
pub fn downgrade(input: TokenStream) -> TokenStream {
690692
let input = parse_macro_input!(input as DeriveInput);

glib/src/closure.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ impl RustClosure {
3737
// rustdoc-stripper-ignore-next
3838
/// Creates a new closure around a Rust closure.
3939
///
40-
/// See [`glib::closure!`] for a way to create a closure with concrete types.
40+
/// See [`glib::closure!`](macro@crate::closure) for a way to create a closure with concrete
41+
/// types.
4142
///
4243
/// # Panics
4344
///
@@ -67,7 +68,8 @@ impl RustClosure {
6768
// rustdoc-stripper-ignore-next
6869
/// Creates a new closure around a Rust closure.
6970
///
70-
/// See [`glib::closure_local!`] for a way to create a closure with concrete types.
71+
/// See [`glib::closure_local!`](crate::closure_local) for a way to create a closure with
72+
/// concrete types.
7173
///
7274
/// # Panics
7375
///

glib/src/object.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,8 @@ pub trait ObjectExt: ObjectType {
18961896
/// Limits the lifetime of `closure` to the lifetime of the object. When
18971897
/// the object's reference count drops to zero, the closure will be
18981898
/// invalidated. An invalidated closure will ignore any calls to
1899-
/// [`Closure::invoke`](crate::Closure::invoke).
1899+
/// [`invoke_with_values`](crate::closure::Closure::invoke_with_values), or
1900+
/// [`invoke`](crate::closure::RustClosure::invoke) when using Rust closures.
19001901
#[doc(alias = "g_object_watch_closure")]
19011902
fn watch_closure(&self, closure: &impl AsRef<Closure>);
19021903

0 commit comments

Comments
 (0)