1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

call-window: Use g_clear_handle_id instead of emulating it

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-12-05 16:51:26 +01:00
parent 8f6ca20a2c
commit 2d18667ee7

View file

@ -112,10 +112,8 @@ update_visibility (CallsCallWindow *self)
G_SOURCE_FUNC (on_delayed_window_hide),
self);
} else {
if (self->hideout_id > 0) {
g_source_remove (self->hideout_id);
self->hideout_id = 0;
}
g_clear_handle_id (&self->hideout_id, g_source_remove);
gtk_widget_set_visible (GTK_WIDGET (self), TRUE);
if (calls == 1)