@@ -938,6 +938,8 @@ pub enum AccessibleRole {
938
938
Widget ,
939
939
#[ doc( alias = "GTK_ACCESSIBLE_ROLE_WINDOW" ) ]
940
940
Window ,
941
+ #[ cfg( any( feature = "v4_10" , feature = "dox" ) ) ]
942
+ #[ cfg_attr( feature = "dox" , doc( cfg( feature = "v4_10" ) ) ) ]
941
943
#[ doc( alias = "GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON" ) ]
942
944
ToggleButton ,
943
945
#[ doc( hidden) ]
@@ -1028,6 +1030,7 @@ impl fmt::Display for AccessibleRole {
1028
1030
Self :: TreeItem => "TreeItem" ,
1029
1031
Self :: Widget => "Widget" ,
1030
1032
Self :: Window => "Window" ,
1033
+ #[ cfg( any( feature = "v4_10" , feature = "dox" ) ) ]
1031
1034
Self :: ToggleButton => "ToggleButton" ,
1032
1035
_ => "Unknown" ,
1033
1036
}
@@ -1119,6 +1122,7 @@ impl IntoGlib for AccessibleRole {
1119
1122
Self :: TreeItem => ffi:: GTK_ACCESSIBLE_ROLE_TREE_ITEM ,
1120
1123
Self :: Widget => ffi:: GTK_ACCESSIBLE_ROLE_WIDGET ,
1121
1124
Self :: Window => ffi:: GTK_ACCESSIBLE_ROLE_WINDOW ,
1125
+ #[ cfg( any( feature = "v4_10" , feature = "dox" ) ) ]
1122
1126
Self :: ToggleButton => ffi:: GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON ,
1123
1127
Self :: __Unknown( value) => value,
1124
1128
}
@@ -1209,6 +1213,7 @@ impl FromGlib<ffi::GtkAccessibleRole> for AccessibleRole {
1209
1213
ffi:: GTK_ACCESSIBLE_ROLE_TREE_ITEM => Self :: TreeItem ,
1210
1214
ffi:: GTK_ACCESSIBLE_ROLE_WIDGET => Self :: Widget ,
1211
1215
ffi:: GTK_ACCESSIBLE_ROLE_WINDOW => Self :: Window ,
1216
+ #[ cfg( any( feature = "v4_10" , feature = "dox" ) ) ]
1212
1217
ffi:: GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON => Self :: ToggleButton ,
1213
1218
value => Self :: __Unknown ( value) ,
1214
1219
}
0 commit comments