[gtk/wip/baedert/for-master: 118/128] 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: 118/128] stack: assert for some assumptions
- Date: Thu, 22 Oct 2020 15:46:50 +0000 (UTC)
commit 44728d09a9775a7e786a3d39ab0d98076ea4c0c6
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 b97ebb54bb..cafa2a263b 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]