mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 16:05:36 +00:00
in-app-notification: Use g_clear_* instead of emulating it
This commit is contained in:
parent
3e37870824
commit
08456c8043
1 changed files with 2 additions and 7 deletions
|
@ -100,8 +100,7 @@ calls_in_app_notification_finalize (GObject *object)
|
||||||
{
|
{
|
||||||
CallsInAppNotification *self = CALLS_IN_APP_NOTIFICATION (object);
|
CallsInAppNotification *self = CALLS_IN_APP_NOTIFICATION (object);
|
||||||
|
|
||||||
if (self->timeout_id)
|
g_clear_handle_id (&self->timeout_id, g_source_remove);
|
||||||
g_source_remove (self->timeout_id);
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (calls_in_app_notification_parent_class)->finalize (object);
|
G_OBJECT_CLASS (calls_in_app_notification_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
@ -169,11 +168,7 @@ calls_in_app_notification_hide (CallsInAppNotification *self)
|
||||||
{
|
{
|
||||||
g_return_if_fail (CALLS_IS_IN_APP_NOTIFICATION (self));
|
g_return_if_fail (CALLS_IS_IN_APP_NOTIFICATION (self));
|
||||||
|
|
||||||
if (self->timeout_id)
|
g_clear_handle_id (&self->timeout_id, g_source_remove);
|
||||||
{
|
|
||||||
g_source_remove (self->timeout_id);
|
|
||||||
self->timeout_id = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
gtk_revealer_set_reveal_child (GTK_REVEALER(self), FALSE);
|
gtk_revealer_set_reveal_child (GTK_REVEALER(self), FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue