Skip to content

Commit

Permalink
gtk: Avoid mis-renamed API
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Feb 21, 2023
1 parent 7c1920a commit 4cc4e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ manual_traits = ["AccessibleExtManual"]
rename = "update_relation"
doc_trait_name = "AccessibleExtManual"
manual = true
[[object.function]]
name = "get_platform_state"
# Don't rename to is_platform_state
rename = "platform_state"

[[object]]
name = "Gtk.Actionable"
Expand Down
4 changes: 2 additions & 2 deletions gtk4/src/auto/accessible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub trait AccessibleExt: 'static {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))]
#[doc(alias = "gtk_accessible_get_platform_state")]
#[doc(alias = "get_platform_state")]
fn is_platform_state(&self, state: AccessiblePlatformState) -> bool;
fn platform_state(&self, state: AccessiblePlatformState) -> bool;

#[doc(alias = "gtk_accessible_reset_property")]
fn reset_property(&self, property: AccessibleProperty);
Expand Down Expand Up @@ -182,7 +182,7 @@ impl<O: IsA<Accessible>> AccessibleExt for O {

#[cfg(any(feature = "v4_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))]
fn is_platform_state(&self, state: AccessiblePlatformState) -> bool {
fn platform_state(&self, state: AccessiblePlatformState) -> bool {
unsafe {
from_glib(ffi::gtk_accessible_get_platform_state(
self.as_ref().to_glib_none().0,
Expand Down

0 comments on commit 4cc4e82

Please sign in to comment.