Skip to content

Commit

Permalink
gtk: Add doc alias for custom enums
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Aug 25, 2023
1 parent 36182b3 commit 8a5796f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gtk4/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ impl FromGlib<ffi::GtkAlign> 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()) }
}
Expand Down
1 change: 1 addition & 0 deletions gtk4/src/response_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
}
Expand Down

0 comments on commit 8a5796f

Please sign in to comment.