[gtk/wip/baedert/for-master: 175/180] stack: assert for some assumptions
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 175/180] stack: assert for some assumptions
- Date: Fri, 16 Oct 2020 19:58:53 +0000 (UTC)
commit d443c88f43a553309402c117b88a45c606b5b687
Author: Timm Bäder <mail baedert org>
Date: Thu Oct 15 18:52:45 2020 +0200
stack: assert for some assumptions
gtk/gtkstack.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index a9a0902c23..8497925a81 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2166,6 +2166,9 @@ gtk_stack_snapshot_cube (GtkWidget *widget,
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
double progress = gtk_progress_tracker_get_progress (&priv->tracker, FALSE);
+ g_assert (priv->active_transition_type == GTK_STACK_TRANSITION_TYPE_ROTATE_RIGHT ||
+ priv->active_transition_type == GTK_STACK_TRANSITION_TYPE_ROTATE_LEFT);
+
if (priv->active_transition_type == GTK_STACK_TRANSITION_TYPE_ROTATE_RIGHT)
progress = 1 - progress;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]