Skip to content

Commit fbe0b6f

Browse files
gtk: Add doc alias for custom enums
1 parent 1f6e1fe commit fbe0b6f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gtk4/src/enums.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ impl FromGlib<ffi::GtkAlign> for Align {
146146

147147
impl StaticType for Align {
148148
#[inline]
149+
#[doc(alias = "gtk_align_get_type")]
149150
fn static_type() -> glib::Type {
150151
unsafe { from_glib(ffi::gtk_align_get_type()) }
151152
}

gtk4/src/response_type.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ impl fmt::Display for ResponseType {
110110

111111
impl StaticType for ResponseType {
112112
#[inline]
113+
#[doc(alias = "gtk_response_type_get_type")]
113114
fn static_type() -> Type {
114115
unsafe { from_glib(ffi::gtk_response_type_get_type()) }
115116
}

0 commit comments

Comments
 (0)