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 Dec 5, 2023
1 parent cbc5168 commit da3c5e2
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 da3c5e2

Please sign in to comment.