Commit 995a9450 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

region: Autodisconnect IBusBus "connected" handler

Use g_signal_connect_object to ensure handler is not run after object is
destroyed.

Fixes: #223
parent 6d1c7ceb
Pipeline #39505 passed with stages
in 1 minute and 41 seconds
......@@ -1319,8 +1319,9 @@ setup_input_section (CcRegionPanel *self)
if (ibus_bus_is_connected (self->ibus))
fetch_ibus_engines (self);
else
g_signal_connect_swapped (self->ibus, "connected",
G_CALLBACK (fetch_ibus_engines), self);
g_signal_connect_object (self->ibus, "connected",
G_CALLBACK (fetch_ibus_engines), self,
G_CONNECT_SWAPPED);
}
maybe_start_ibus ();
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment