Skip to content

Commit

Permalink
glib: Add correct versions to various new unicode scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege authored and bilelmoussaoui committed Nov 12, 2024
1 parent 3213316 commit 79170c3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
23 changes: 4 additions & 19 deletions glib/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -888,29 +888,14 @@ status = "generate"
name = "GLib.UnicodeScript"
status = "generate"
[[object.member]]
name = "cypro_minoan"
pattern = "cypro_minoan|old_uyghur|tangsa|toto|vithkuqi|math"
version = "2.72"
[[object.member]]
name = "old_uyghur"
version = "2.72"
[[object.member]]
name = "tangsa"
version = "2.72"
[[object.member]]
name = "toto"
version = "2.72"
[[object.member]]
name = "vithkuqi"
version = "2.72"
[[object.member]]
name = "math"
version = "2.72"
[[object.member]]
name = "kawi"
pattern = "kawi|nag_mundari"
version = "2.74"
[[object.member]]
name = "nag_mundari"
version = "2.74"
pattern = "todhri|garay|tulu_tigalari|sunuwar|gurung_khema|kirat_rai|ol_onal"
version = "2.84"

[[object]]
name = "GLib.Uri"
Expand Down
28 changes: 28 additions & 0 deletions glib/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,18 +1514,32 @@ pub enum UnicodeScript {
#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
#[doc(alias = "G_UNICODE_SCRIPT_NAG_MUNDARI")]
NagMundari,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_TODHRI")]
Todhri,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_GARAY")]
Garay,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_TULU_TIGALARI")]
TuluTigalari,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_SUNUWAR")]
Sunuwar,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_GURUNG_KHEMA")]
GurungKhema,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_KIRAT_RAI")]
KiratRai,
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_UNICODE_SCRIPT_OL_ONAL")]
OlOnal,
#[doc(hidden)]
Expand Down Expand Up @@ -1724,12 +1738,19 @@ impl IntoGlib for UnicodeScript {
Self::Kawi => ffi::G_UNICODE_SCRIPT_KAWI,
#[cfg(feature = "v2_74")]
Self::NagMundari => ffi::G_UNICODE_SCRIPT_NAG_MUNDARI,
#[cfg(feature = "v2_84")]
Self::Todhri => ffi::G_UNICODE_SCRIPT_TODHRI,
#[cfg(feature = "v2_84")]
Self::Garay => ffi::G_UNICODE_SCRIPT_GARAY,
#[cfg(feature = "v2_84")]
Self::TuluTigalari => ffi::G_UNICODE_SCRIPT_TULU_TIGALARI,
#[cfg(feature = "v2_84")]
Self::Sunuwar => ffi::G_UNICODE_SCRIPT_SUNUWAR,
#[cfg(feature = "v2_84")]
Self::GurungKhema => ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA,
#[cfg(feature = "v2_84")]
Self::KiratRai => ffi::G_UNICODE_SCRIPT_KIRAT_RAI,
#[cfg(feature = "v2_84")]
Self::OlOnal => ffi::G_UNICODE_SCRIPT_OL_ONAL,
Self::__Unknown(value) => value,
}
Expand Down Expand Up @@ -1914,12 +1935,19 @@ impl FromGlib<ffi::GUnicodeScript> for UnicodeScript {
ffi::G_UNICODE_SCRIPT_KAWI => Self::Kawi,
#[cfg(feature = "v2_74")]
ffi::G_UNICODE_SCRIPT_NAG_MUNDARI => Self::NagMundari,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_TODHRI => Self::Todhri,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_GARAY => Self::Garay,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_TULU_TIGALARI => Self::TuluTigalari,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_SUNUWAR => Self::Sunuwar,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA => Self::GurungKhema,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_KIRAT_RAI => Self::KiratRai,
#[cfg(feature = "v2_84")]
ffi::G_UNICODE_SCRIPT_OL_ONAL => Self::OlOnal,
value => Self::__Unknown(value),
}
Expand Down

0 comments on commit 79170c3

Please sign in to comment.