From 8a5796f4c061358edc8619c287e409f059e4b33e Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Fri, 25 Aug 2023 20:44:58 +0200 Subject: [PATCH] gtk: Add doc alias for custom enums --- gtk4/src/enums.rs | 1 + gtk4/src/response_type.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/gtk4/src/enums.rs b/gtk4/src/enums.rs index fdc1db53397c..475c5fa19a26 100644 --- a/gtk4/src/enums.rs +++ b/gtk4/src/enums.rs @@ -146,6 +146,7 @@ impl FromGlib for Align { impl StaticType for Align { #[inline] + #[doc(alias = "gtk_align_get_type")] fn static_type() -> glib::Type { unsafe { from_glib(ffi::gtk_align_get_type()) } } diff --git a/gtk4/src/response_type.rs b/gtk4/src/response_type.rs index 5175d5f562e1..da59f9835242 100644 --- a/gtk4/src/response_type.rs +++ b/gtk4/src/response_type.rs @@ -110,6 +110,7 @@ impl fmt::Display for ResponseType { impl StaticType for ResponseType { #[inline] + #[doc(alias = "gtk_response_type_get_type")] fn static_type() -> Type { unsafe { from_glib(ffi::gtk_response_type_get_type()) } }