[gnome-control-center] region: Autodisconnect IBusBus "connected" handler
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Autodisconnect IBusBus "connected" handler
- Date: Mon, 8 Oct 2018 20:00:58 +0000 (UTC)
commit 88ca2fcdc4c3314c55c60a18be232891aaca9df5
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Mon Oct 8 13:09:10 2018 +0100
region: Autodisconnect IBusBus "connected" handler
Use g_signal_connect_object to ensure handler is not run after object is
destroyed.
Fixes: GNOME/gnome-control-center#223
panels/region/cc-region-panel.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 137dc4423..bbae8c0e2 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -1330,8 +1330,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]