window: release timeout source after undo
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
facb1fb1fc
commit
e7af463290
+7
-1
@@ -1292,6 +1292,8 @@ remove_event (GtkWidget *notification,
|
|||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -1336,7 +1338,11 @@ undo_remove_action (GtkButton *button,
|
|||||||
priv->removed_source = NULL;
|
priv->removed_source = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_revealer_set_reveal_child (GTK_REVEALER (priv->notification), FALSE);
|
if (priv->event_to_delete != NULL || priv->removed_source != NULL)
|
||||||
|
{
|
||||||
|
g_source_remove (priv->notification_timeout);
|
||||||
|
hide_notification (GCAL_WINDOW (user_data), NULL);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user