style: [Linux] Export titlebar radius as int from LookAndFeel

Titlebar radius is exported as integer from Gtk so there's no need to use floats here.

Differential Revision: https://phabricator.services.mozilla.com/D128993
This commit is contained in:
stransky 2023-05-27 17:33:09 +02:00 committed by Oriol Brufau
parent c3c3dacb97
commit 578ecdba79

View file

@ -443,7 +443,7 @@ impl Device {
/// Returns the gtk titlebar radius in CSS pixels.
pub fn titlebar_radius(&self) -> f32 {
unsafe {
bindings::Gecko_GetLookAndFeelFloat(bindings::LookAndFeel_FloatID::TitlebarRadius as i32)
bindings::Gecko_GetLookAndFeelInt(bindings::LookAndFeel_IntID::TitlebarRadius as i32) as f32
}
}