mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-24 04:25:31 +00:00
call-record-row: Use g_clear_signal_handler
glib is recent enough nowadays Signed-off-by: Guido Günther <agx@sigxcpu.org> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/756>
This commit is contained in:
parent
2f8877b107
commit
08a01fb1c5
1 changed files with 4 additions and 4 deletions
|
@ -244,10 +244,10 @@ notify_time_cb (CallsCallRecordRow *self,
|
||||||
update_time (self, inbound, answered, end);
|
update_time (self, inbound, answered, end);
|
||||||
|
|
||||||
if (answered)
|
if (answered)
|
||||||
calls_clear_signal (record, &self->answered_notify_handler_id);
|
g_clear_signal_handler (&self->answered_notify_handler_id, record);
|
||||||
|
|
||||||
if (end)
|
if (end)
|
||||||
calls_clear_signal (record, &self->end_notify_handler_id);
|
g_clear_signal_handler (&self->end_notify_handler_id, record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -499,8 +499,8 @@ dispose (GObject *object)
|
||||||
g_clear_object (&self->action_map);
|
g_clear_object (&self->action_map);
|
||||||
|
|
||||||
g_clear_handle_id (&self->date_change_timeout, g_source_remove);
|
g_clear_handle_id (&self->date_change_timeout, g_source_remove);
|
||||||
calls_clear_signal (self->record, &self->answered_notify_handler_id);
|
g_clear_signal_handler (&self->answered_notify_handler_id, self->record);
|
||||||
calls_clear_signal (self->record, &self->end_notify_handler_id);
|
g_clear_signal_handler (&self->end_notify_handler_id, self->record);
|
||||||
g_clear_object (&self->record);
|
g_clear_object (&self->record);
|
||||||
|
|
||||||
G_OBJECT_CLASS (calls_call_record_row_parent_class)->dispose (object);
|
G_OBJECT_CLASS (calls_call_record_row_parent_class)->dispose (object);
|
||||||
|
|
Loading…
Reference in a new issue