Skip to content

Commit

Permalink
Fix LocaleProxy writable properties
Browse files Browse the repository at this point in the history
Same issue as in #712:

zbus-xmlgen generates a proxy for setting a writable property but
forgets to mark it as a property, generating a method call instead

(I fixed zbus-xmlgen in August but they haven't released a crate since June)
  • Loading branch information
mvidner committed Jan 19, 2024
1 parent dcea23e commit e4ec38b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/agama-lib/src/proxies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,25 @@ trait Locale {
/// Keymap property
#[dbus_proxy(property)]
fn keymap(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn set_keymap(&self, value: &str) -> zbus::Result<()>;

/// Locales property
#[dbus_proxy(property)]
fn locales(&self) -> zbus::Result<Vec<String>>;
#[dbus_proxy(property)]
fn set_locales(&self, value: &[&str]) -> zbus::Result<()>;

/// Timezone property
#[dbus_proxy(property)]
fn timezone(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn set_timezone(&self, value: &str) -> zbus::Result<()>;

/// UILocale property
#[dbus_proxy(property, name = "UILocale")]
fn uilocale(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn set_uilocale(&self, value: &str) -> zbus::Result<()>;
}

Expand Down

0 comments on commit e4ec38b

Please sign in to comment.