codegen: adapt signals emit_* per ObjectExt changes
@@ -7,7 +7,6 @@ use crate::{
analysis,
chunk::Chunk,
env::Env,
- nameutil::use_glib_type,
writer::{primitives::tabs, ToCode},
};
use std::io::{Result, Write};
@@ -134,14 +133,13 @@ pub fn generate(
writeln!(
w,
- "{}let {} = unsafe {{ glib::Object::from_glib_borrow(self.as_ptr() as *mut {}).emit_by_name(\"{}\", &[{}]).unwrap() }};",
+ "{}let {} = self.emit_by_name(\"{}\", &[{}]);",
tabs(indent + 1),
if trampoline.ret.typ != Default::default() {
"res"
} else {
"_"
},
- use_glib_type(env, "gobject_ffi::GObject"),
analysis.signal_name,
args,
)?;
