mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-23 20:15:32 +00:00
new-call-box: Respect object lifecycle for signals
This commit is contained in:
parent
46736a63fa
commit
e168170f9e
1 changed files with 5 additions and 2 deletions
|
@ -329,8 +329,11 @@ calls_new_call_box_init (CallsNewCallBox *self)
|
|||
hdy_combo_row_bind_name_model (self->origin_list, origins,
|
||||
get_origin_name, self, NULL);
|
||||
|
||||
g_signal_connect_swapped (origins, "items-changed",
|
||||
G_CALLBACK (origin_count_changed_cb), self);
|
||||
g_signal_connect_object (origins,
|
||||
"items-changed",
|
||||
G_CALLBACK (origin_count_changed_cb),
|
||||
self,
|
||||
G_CONNECT_SWAPPED);
|
||||
origin_count_changed_cb (self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue