Skip to content

Commit

Permalink
codegen: Switch from Inhibit to ControlFlow
Browse files Browse the repository at this point in the history
As it had the same semantics as glib::Continue which we replaced
  • Loading branch information
bilelmoussaoui committed Jul 6, 2023
1 parent c659c2b commit c88b692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen/trampoline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
consts::TYPE_PARAMETERS_START,
env::Env,
library,
nameutil::{use_glib_if_needed, use_gtk_type},
nameutil::{use_glib_if_needed, use_glib_type, use_gtk_type},
traits::IntoString,
writer::primitives::tabs,
};
Expand Down Expand Up @@ -148,7 +148,7 @@ fn func_returns(env: &Env, analysis: &Trampoline) -> String {
if analysis.ret.typ == Default::default() {
String::new()
} else if analysis.inhibit {
" -> glib::signal::Inhibit".into()
format!(" -> {inhibit}", inhibit = use_glib_type(env, "ControlFlow"))
} else if let Some(return_type) =
analysis
.ret
Expand Down

0 comments on commit c88b692

Please sign in to comment.