mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
update const name
This commit is contained in:
parent
564b02c0f5
commit
69b879540d
@ -5,8 +5,8 @@ glib::wrapper! {
|
|||||||
pub struct Item(ObjectSubclass<imp::Item>);
|
pub struct Item(ObjectSubclass<imp::Item>);
|
||||||
}
|
}
|
||||||
|
|
||||||
// C-based conversion for `None` value
|
// C-type conversion
|
||||||
const PROFILE_IDENTITY_GEMINI_ID_NONE: i64 = -1;
|
const OPTION_NEW: i64 = -1;
|
||||||
|
|
||||||
impl Item {
|
impl Item {
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -18,7 +18,7 @@ impl Item {
|
|||||||
"profile_identity_gemini_id",
|
"profile_identity_gemini_id",
|
||||||
match profile_identity_gemini_id {
|
match profile_identity_gemini_id {
|
||||||
Some(value) => value,
|
Some(value) => value,
|
||||||
None => PROFILE_IDENTITY_GEMINI_ID_NONE,
|
None => OPTION_NEW,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.property("title", title)
|
.property("title", title)
|
||||||
@ -31,7 +31,7 @@ impl Item {
|
|||||||
/// Additional `profile_identity_gemini_id` wrapper with `Option` value support
|
/// Additional `profile_identity_gemini_id` wrapper with `Option` value support
|
||||||
pub fn profile_identity_gemini_id_option(&self) -> Option<i64> {
|
pub fn profile_identity_gemini_id_option(&self) -> Option<i64> {
|
||||||
match self.profile_identity_gemini_id() {
|
match self.profile_identity_gemini_id() {
|
||||||
PROFILE_IDENTITY_GEMINI_ID_NONE => None,
|
OPTION_NEW => None,
|
||||||
value => Some(value),
|
value => Some(value),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user