Skip to content

Commit 1df8076

Browse files
AbuShawaribsdroege
authored andcommitted
gtk: Change disable_portals() assertion to non-initialized
Fixes: #2074
1 parent 32b9ee1 commit 1df8076

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gtk4/Gir.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ status = "generate"
543543
name = "accelerator_parse"
544544
manual = true # to make use of gdk::Key
545545
[[object.function]]
546+
name = "disable_portals"
547+
assertion = "not-initialized"
548+
[[object.function]]
546549
name = "disable_setlocale"
547550
assertion = "not-initialized"
548551
[[object.function]]

gtk4/src/auto/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn check_version(
3939
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
4040
#[doc(alias = "gtk_disable_portals")]
4141
pub fn disable_portals() {
42-
assert_initialized_main_thread!();
42+
assert_not_initialized!();
4343
unsafe {
4444
ffi::gtk_disable_portals();
4545
}

0 commit comments

Comments
 (0)