1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
use ffi; use glib::translate::{from_glib, ToGlib}; impl Into<i32> for ::IconSize { fn into(self) -> i32 { skip_assert_initialized!(); self.to_glib() as i32 } } impl From<i32> for ::IconSize { fn from(val: i32) -> Self { skip_assert_initialized!(); from_glib(val as ffi::GtkIconSize) } } impl Into<i32> for ::ResponseType { fn into(self) -> i32 { skip_assert_initialized!(); self.to_glib() as i32 } } impl From<i32> for ::ResponseType { fn from(val: i32) -> Self { skip_assert_initialized!(); from_glib(val as ffi::GtkResponseType) } }