Skip to content

Commit

Permalink
codegen: Use glib type for ErrorDomain as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Jul 6, 2023
1 parent b11abb2 commit 032b328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,12 @@ impl FromGlib<{sys_crate_name}::{ffi_name}> for {name} {{
allow_deprecated(w, any_deprecated_version, false, 0)?;
writeln!(
w,
"impl ErrorDomain for {name} {{
"impl {glib_error_domain} for {name} {{
#[inline]
fn domain() -> {glib_quark} {{
{assert}",
name = enum_.name,
glib_error_domain = use_glib_type(env, "ErrorDomain"),
glib_quark = use_glib_type(env, "Quark"),
assert = assert
)?;
Expand Down

0 comments on commit 032b328

Please sign in to comment.