Skip to content

gtk: Change disable_portals() assertion to non-initialized #2075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,9 @@ status = "generate"
name = "accelerator_parse"
manual = true # to make use of gdk::Key
[[object.function]]
name = "disable_portals"
assertion = "not-initialized"
[[object.function]]
name = "disable_setlocale"
assertion = "not-initialized"
[[object.function]]
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn check_version(
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
#[doc(alias = "gtk_disable_portals")]
pub fn disable_portals() {
assert_initialized_main_thread!();
assert_not_initialized!();
unsafe {
ffi::gtk_disable_portals();
}
Expand Down
Loading