Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 97a4314

Browse files
committed
gtk: implement From<ResponseType> for Value
1 parent f2ab1e8 commit 97a4314

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gtk/src/response_type.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,10 @@ impl ToValue for ResponseType {
137137
Self::static_type()
138138
}
139139
}
140+
141+
impl From<ResponseType> for glib::Value {
142+
fn from(t: ResponseType) -> Self {
143+
skip_assert_initialized!();
144+
t.to_value()
145+
}
146+
}

0 commit comments

Comments
 (0)